Skip to content
Sonelune

Use Sonelune from your AI agent

Hand your notes, articles or study material to an AI assistant and let it check credits, generate narrated audio, search past tracks and organize your listening queue using the Sonelune Skill and Personal API.

Send this prompt to your AI assistant

First, show me where to set SONELUNE_API_KEY in your environment. I’ll enter the key myself. Once it’s set, install the Sonelune skill from https://github.com/sonelune/skills and check my credit balance to confirm the connection.

Enter the key in the assistant’s environment or secret settings. Keep it out of the chat.

Manual installation

Verified with Codex CLI
  1. 01

    Set the API key environment variable

    Create and copy a personal API key in your account. Set SONELUNE_API_KEY to that key in the environment where your assistant runs.

    If you’re unsure where to set it, ask your AI assistant “Where should I set SONELUNE_API_KEY so you can access it?” Enter the key yourself.

    Use your key with an AI assistant

    The Sonelune Skill reads SONELUNE_API_KEY to access your account. Copy the full key when you create it. Keep it out of the chat.

    macOS / Linux (bash, zsh)

    For zsh, open ~/.zshrc (for example, run nano ~/.zshrc). For bash, macOS login terminals typically use ~/.bash_profile and Linux interactive terminals use ~/.bashrc. Add the line below, replacing YOUR_KEY with your full key. Save, open a new terminal, and launch your assistant there.

    export SONELUNE_API_KEY='YOUR_KEY'
    Windows

    Open “Edit environment variables for your account”. Under User variables, add SONELUNE_API_KEY with your full key as its value. Save, reopen your terminal, and launch your assistant.

    Desktop or hosted assistant

    Desktop and cloud assistants generally do not read your local shell configuration. If your assistant offers environment variable or secret settings, add SONELUNE_API_KEY there with your full key, save, and restart as directed.

    Ask “How many Sonelune credits do I have?” to verify the connection for free.

  2. 02

    Install the Skill

    Run this command in your project folder. If prompted, select the assistant you use.

    npx skills add sonelune/skills
  3. 03

    Test with a read-only check

    Start by asking “Use Sonelune to check my credit balance.” Once the balance comes back, attach your notes and ask it to quote or generate audio.

Other compatible agents

Your assistant must be able to call the Sonelune API with your personal API key. Send the key only to https://api.sonelune.com in the Authorization header using the Bearer scheme. If your assistant supports Agent Skills, load SKILL.md for step-by-step instructions.

What you can ask your agent

Install the Skill once, then manage your personal audio library in plain language.

Generate & queue a batch

“Turn these three notes into separate audio tracks and add them to my listening queue in order.”

Check credits before spending

“Use Sonelune to check my credit balance and estimate how many credits these notes would take.”

Find past audio

“Find the Japanese audio tracks I generated last week and give me their player links.”

Organize your listening queue

“Show what is in my Sonelune listening queue and remove the first track without deleting it from my library.”

Permissions, credits & safety

What a personal key can do
A key can read text and audio in your library, check your credit balance, quote and spend credits to generate audio, and add or remove items in your listening queue.
Quotes spend nothing
Balance checks and batch cost estimates reserve zero credits. The Skill only submits paid generation tasks when you explicitly ask it to generate audio.
Safe retries
If a generation request times out, retry within 24 hours of the original request using the same Idempotency-Key and the same request body. This prevents a second paid track.
Revoke anytime
Keys are shown only once at creation and can be revoked at any time from Personal API keys. Removing an item from your queue keeps the audio in your library.

Sign in to continue

We'll keep this page ready while you sign in. Google sign-in will take you to Google and then bring you back.

Sonelune never receives your Google or Apple password.

By continuing, you agree to our Terms of Service and Privacy Policy.