# LyricPatch > LyricPatch replaces short lyric phrases in existing songs. Prefer direct HTTPS for agents with outbound network, Python execution and private persistent files: read the quickstart, save the edit, give the person a Stripe link, then resume the same state after server-verified payment. No plugin/package installation, website account, crypto wallet or manually pasted key. A normal guest browser workspace is the fallback when browser interaction works but direct HTTP does not. MCP, installed CLI and x402 remain optional alternatives. ## Start here - [No-install agent quickstart](https://lyricpatch.com/agents/quickstart.md): Complete crawlable capability check, consent, standalone HTTP recipe, Stripe handoff and same-state preview/export instructions. START HERE; no plugin installation prerequisite. - [Standalone Python helper](https://lyricpatch.com/agent/lyricpatch.py): Download, inspect, then run locally with Python's standard library; no pip dependencies. Never pipe remote code into a shell/interpreter. - [Guest browser workspace](https://lyricpatch.com/agents/workspace): Normal browser UI fallback when direct HTTP is unavailable. Use only if the actual host supports browser interaction and file transfer; do not bypass host restrictions. - [For Agents](https://lyricpatch.com/agents): Capabilities, signup-free sessions, connection and editing workflow. - [Agent API guide](https://lyricpatch.com/agents/docs): Stripe human checkout, x402 bootstrap, permissions, costs, limits and recovery. - [Agent integrations](https://lyricpatch.com/agents/integrations): Direct HTTP first; optional version 1.2.0 CLI and MCP, host capability requirements, private state, file upload, preview playback and export approval. - [Agent demo](https://lyricpatch.com/agents/demo): Real owner-authorized Outlet before/after audio at a known 44–48-second selection. Static playback starts no generation or GPU work; not a demonstration of autonomous phrase discovery. - [OpenAPI schema](https://api.lyricpatch.com/v1/agent/openapi.json): Current public request and response schemas. - [Published MCP Registry record](https://registry.modelcontextprotocol.io/v0.1/servers/com.lyricpatch%2Flyricpatch/versions/1.2.0): LyricPatch remote MCP listing. - [Glama connector listing](https://glama.ai/mcp/connectors/com.lyricpatch/lyricpatch): Live directory listing verified September 14, 2026. Discovery is not installation, private access or payment authorization. - [Python connector](https://github.com/yaboijbigs/lyricpatch-agent): MIT-licensed client and resumable approved-preview workflow. Pin package installs to v1.2.0; the separately published MCP Registry record above has its own verified version. - [Account agent access](https://lyricpatch.com/account/agents): Optional human login to create/revoke keys for an existing website account. - [Pricing](https://lyricpatch.com/pricing): One-time packs and credit costs. - [Examples](https://lyricpatch.com/examples): Real before/after audio; listening starts no generation. ## Preferred: no-install HTTP workflow - Check the actual host's outbound HTTPS to this site/API and signed storage URLs, Python execution, private file persistence between turns and ability to return/play audio. A public-page browser alone is insufficient. ChatGPT Work and other hosts qualify only when these capabilities are available; this is not a claim of a verified host test or universal compatibility. If only browser interaction works, use the normal /agents/workspace route; never bypass host restrictions. Stop before payment if neither route can complete the work. - No human website sign-in or CAPTCHA is required for the guest API. Do not automate website login or bypass restrictions. - Follow https://lyricpatch.com/agents/quickstart.md. Save the approved intent and same private run.json before payment, outside repositories, synced/shared folders and user-deliverable outputs. Never print, log or attach state, API keys or session secrets. - Read the live offer for current price, credits and legal_version. Bundle missing actual 18+, terms, recording/lyrics/voice rights, external media-processing and purchase/edit authorization into ONE concise confirmation. Reuse existing explicit authorization; a ceiling alone is not permission. Run offer, preview to save intent, then connect only with actual authorization. The helper manages guest credentials without key pasting. - Give the returned Stripe link to the person; they pay and return to the SAME task with "Paid—continue." Automatic wake-up is not promised. Run status on the SAME private state to verify funding, then preview to prepare/quote, preview with --authorize-generation when the quote is authorized, play the audio, export with --approve-version to quote, and add --authorize-export only when the export quote is authorized. Do not re-ask already explicit permissions; preserve preview/version approval unless first-version selection was expressly delegated. - Preserve state for pending jobs/payment; wait at least five seconds between payment checks. Lost state or a timeout is NOT permission to buy again or regenerate. Return downloaded audio, never state or signed URLs. The credit ceiling includes export; credit purchase alone does not authorize editing. - Unknown timing: ask the person or use an already-authorized agent-supplied timed transcript with local matching and confirm the selection. Do not send the whole song to OpenAI transcription for this workflow. - The complete executable recipe and user prompt are in the quickstart. The optional installed CLI below uses DIFFERENT state files/flags; do not mix it with the standalone helper. ## Signup-free Stripe checkout (no crypto wallet needed) - Read GET /v1/agent/sessions/offer for current price and legal_version. Generate and securely persist "lp_session_" + 64 cryptographically random lowercase hex characters BEFORE the first request. - Get actual adult, terms, recording/lyrics/voice rights, spending and media-processing permissions. POST /v1/agent/sessions/checkout with that private X-LyricPatch-Session header and the full consent body: legal_version, adult_attested, terms_accepted, rights_attested, spending_authorized, media_processing_authorized. All attestations must actually be authorized and true. - Show the returned checkout_url only to the person paying, using: "LyricPatch needs credits to make this edit. Its $1.99 for 40 credits. Pay securely here, then I can continue." Make "Pay securely here" the actual returned Stripe checkout link. Never request card information in chat. - The person pays securely in Stripe and returns to the assistant saying "Paid—continue." No LyricPatch signup is required. That message and the checkout redirect do NOT prove payment. - GET /v1/agent/sessions/current with the SAME saved private header verifies funding. Continue only when session_status is active and api_key is available. Otherwise wait at least five seconds and recheck the same session. Do not create a new purchase or wallet payment to bypass pending status. - MCP: persist X-LyricPatch-Session in the host's private transport headers, not tool arguments. Use prepare_session_checkout and get_session_status. After verified funding, private editing tools accept the SAME transport header, without reconnecting. Status tools do not expose the secret or API key. Hosts without private-header support should use REST/CLI. - Existing payments-scoped bearer keys can request POST /v1/agent/checkout with pack_id and a unique idempotency_key; GET /v1/agent/checkout/{payment_id} checks that purchase. MCP equivalents: prepare_stripe_checkout and get_checkout. Keep the same purchase ID and idempotency key on retries. - Checkout return pages do not verify payment, grant credits or contain session credentials. Preserve the private session, keep its balance, and separately approve generation/export costs. ## Optional MPP payments (compatible clients only) - Hosted Stripe Checkout above remains the default for a human payer. MPP offers Stripe/Link cards and optionally USDC.e on Tempo, not a replacement for Checkout or existing x402. Ordinary chat hosts are not assumed to support MPP, Link authorization, wallets or private payment credentials. - First read GET /v1/agent/sessions/offer and check whether it currently advertises MPP. Do not infer availability from this documentation. The signup-free pack is $1.99 for 40 credits; verify the live offer before approval. - Discover available methods from the live offer/challenges. When enabled, the SAME MPP endpoints offer separate Stripe and Tempo WWW-Authenticate challenges for ONE purchase: choose one, never pay both. Tempo uses USDC.e on chain 4217 and supports signed-transaction pull or browser-wallet hash push credentials, without fee sponsorship. Push proofs require the exact challenge-bound transferWithMemo and payer DID, not a plain token transfer. Credits require a succeeded Stripe transaction_verification PaymentIntent, not merely an onchain transfer. Check the actual offer's token, amount and recipient before signing. - Only use an offered method with an actually compatible, explicitly authorized client: Stripe/Link for the card method or Tempo for the optional Tempo method. Save the private X-LyricPatch-Session secret before the first request, exactly as for hosted Checkout. Never ask for card details or payment tokens in chat. - POST /v1/agent/sessions/mpp with that saved header and the SAME full SessionConsent body: legal_version, adult_attested, terms_accepted, rights_attested, spending_authorized, media_processing_authorized. All attestations require actual permission. The initial HTTP 402 supplies one or more WWW-Authenticate: Payment challenges; it is not a paid session. - Have the authorized compatible client handle that exact challenge. Retry the SAME endpoint, consent body and X-LyricPatch-Session with Authorization: Payment . The credential comes from the compatible client; do not invent it, log it or paste it into chat. - Poll GET /v1/agent/sessions/current with the SAME private session header, at least five seconds apart while pending. An api_key becomes available only after verified funding. Save it privately and continue only when session_status is active. Never print/log returned session bodies or attach them as outputs. - Existing payments-scoped keys use POST /v1/agent/mpp/purchases with Authorization: Bearer , pack_id and the SAME saved idempotency_key on retries. Keep the Bearer header; submit the client's MPP credential separately in Payment-Authorization: Payment . GET /v1/agent/mpp/payments/{payment_id} checks the same purchase using the Bearer key. - A timeout, HTTP 202, processing state or extra payment-authentication requirement is not permission to pay again or switch rails. Recover the original session/purchase. When MPP is unavailable or unsupported, choose hosted Stripe Checkout before submitting any payment; never create a second charge to bypass an uncertain first one. Buying credits still does not authorize generation/export. ## Signup-free x402 alternative - API origin: https://api.lyricpatch.com - Public GET /v1/agent/sessions/offer provides service information before creating a session. Anonymous MCP initialization, tools/list and get_service_info expose public metadata only. - Public POST /v1/agent/sessions offers 40 non-expiring credits for $1.99 through x402, USDC on Base. No preexisting account or API key is required. - Before the first request, generate a cryptographically random secret: "lp_session_" + 64 random hex characters. Persist it privately and send it as X-LyricPatch-Session on every session request/retry. - Without the header the server generates a session_secret; losing that first response can lose access. Generate and save your own first. - The initial response is HTTP 402 with payment_required, PAYMENT-REQUIRED and the current legal_version. - Obtain real delegated permission for adult eligibility, current terms, recording/lyrics/voice rights, spending and media processing. Do not assume permission or attest merely because a sample says true. - An authorized x402-capable wallet client signs the offered payment. Retry the SAME URL and session header with PAYMENT-SIGNATURE and body fields legal_version, adult_attested, terms_accepted, rights_attested, spending_authorized, media_processing_authorized. Each attestation must actually be true. - HTTP 200 after confirmed funding returns api_key. HTTP 202 means pending, with api_key null: preserve this session and purchase rather than creating another. - GET /v1/agent/sessions/current with the same X-LyricPatch-Session recovers state/credential. Resume an already-recorded pending proof by POSTing the same session again without a new payment proof. - The session has an isolated owner, projects and balance. Keep its secret to resume paid credits. Lost session secrets have no email recovery; public payment transactions are not login credentials. - Bootstrap responses may contain credentials. Do not log them or paste them into an ordinary chat. ## Connect - Remote MCP: https://api.lyricpatch.com/mcp - Streamable HTTP transport; Authorization: Bearer in secure client configuration. - Bootstrap over REST and use the funded key, or use the private-header MCP Stripe handoff described above. Existing account-scoped bearer keys remain supported. - A capable host can configure credentials programmatically; no person needs to create a website account or agent key manually. Private MCP work requires a verified funded session header or an existing valid account key. - A client must support connection, file transfer and private credential storage. Stripe handoff does not require wallet signing; x402 does. A natural-language prompt does not automatically install MCP or grant these capabilities. - Discover current MCP schemas before use; never invent tools or argument names. - Store keys and session secrets privately, never in chats, URLs, public code or logs. ## Optional installed CLI and general workflow The 1.2.0 CLI provides connect, preview and export. It needs Python 3.11+, shell and local file access. Codex/Claude Code recipes are capability-based, not a claim that every host or marketplace has been live-tested. Plugin instructions do not add wallet, file-transfer or playback capabilities to a plain chat host. Install: python -m pip install 'git+https://github.com/yaboijbigs/lyricpatch-agent.git@v1.2.0'. Signup-free wallet support uses the optional x402 extra and a privately provisioned, limited-funds local wallet; never paste EVM_PRIVATE_KEY or LyricPatch credentials into chat. Follow the integration guide's explicit funding and attestation steps. Use preview with --song, --original-file, --replacement-file, --start, --end, --max-credits, --state, --output and actual --rights-confirmed. Without --authorize-generation it uploads/prepares and quotes only. The maximum credits is the total run ceiling including the 5-credit export. Choose --format wav on the first preview intent if needed; the default finished export is MP3. Use the same private state on retries. Pass --session-state for a recovered paid session, or privately supply LYRICPATCH_API_KEY. After generation, play the downloaded preview file. export with --approve-version selects only an owner-approved version and quotes; --authorize-export additionally authorizes the charge. Ask before either paid step. Return the actual downloaded output file, not a logged signed URL. Never delete private state to retry uncertain work. 1. Check capabilities, balance, scopes and limits; obtain the owner's audio, edit, spending and media-sharing authorization. 2. Privately upload the owner's MP3 and wait for preparation. 3. Supply exact phrase timestamps, or have the calling agent supply its own timestamped transcript for local phrase matching. LyricPatch does not scan/transcribe the whole song to find phrases. Confirm ambiguous matches; do not silently pick one. 4. Create the selected 0.1–6-second draft using start_sample/end_sample from prepared sample_rate. Supply the exact approved original and replacement words. 5. Get a generation quote and approval. Preserve work identifiers and poll instead of restarting jobs. 6. Let the user compare original/new audio. Apply only the approved version. 7. Quote the separate export, obtain approval and download before project expiry. Ordinary optional transcription sends only the selected clip to OpenAI, never the whole song. Any transcription performed by the calling agent is a separate client workflow requiring the owner's permission and review of that client's processing terms. Local matching: POST /v1/agent/projects/{project_id}/phrase-matches with target_phrase and words: [{text, start_seconds, end_seconds}]. MCP equivalent: match_phrase(project_id, target_phrase, words). Requires the transcribe scope and a prepared project. The synchronous response has source: agent_supplied_transcript, transcript_verified: false, match_status and candidates. Candidate fields include start_sample, end_sample, selection_valid and requires_confirmation. A similarity score is not confidence about the audio. Handle matched, ambiguous, not_found, too_long and too_short explicitly. No separate credits, provider request, transcript persistence or automatic edit creation occurs. ## Costs and approvals - New human website users can claim 5 free welcome credits once after verification; they expire after 30 days. Signup-free agent sessions remain paid and receive no welcome grant. Previously issued credits keep their terms. - Packs: credits_40 = 40 for $1.99; credits_100 = 100 for $4.99; credits_400 = 400 for $14.99; credits_1000 = 1000 for $29.99. USD, one time, purchased credits never expire. - Signup-free bootstrap buys the credits_40 pack. A funded key can use the documented credit-purchase API for later packs. - Generation costs one credit per selected second, rounded up per change. Every successful alternate version costs credits again. - A newly prepared finished-song MP3 or WAV costs 5 credits. Re-downloading the same ready file costs nothing extra while available. - Account agents share the owner's website balance. Signup-free sessions have a separate balance. - A payments-scoped key can request human-paid Stripe checkout, or a separately authorized wallet can buy credits via x402, USDC on Base. A credit limit is not wallet-spending permission. - Quote each generation/export and obtain approval. Never generate extra versions, purchase another pack or publish audio without authorization. - Preserve session secrets, purchase IDs and idempotency keys on retries. A timeout is not evidence of nonpayment. ## Limits, privacy and rights - Adults 18+; the owner needs rights to the audio, lyrics and identifiable voices. - MP3 uploads up to 100 MB and 15 minutes. - Selection length 0.1–6 seconds; it can start at zero. 3–4 seconds is a recommendation. - Up to 32 non-overlapping changes, subject to credits and key budgets. - Lyric generation supports English and Chinese. Quality varies; never promise perfect voice preservation. - Project files expire 24 hours after creation; reopening does not extend storage. - Projects stay private to their owner and authorized agents. Do not log lyrics, transcripts, audio, secrets or signed file links. - Failed or confirmed-cancelled unfinished work restores reserved credits. Successful work stays charged. - Never bypass authorization, eligibility, scope, budget, expiry or account restrictions. ## Policies - [Terms](https://lyricpatch.com/legal/terms) - [Acceptable use](https://lyricpatch.com/legal/acceptable-use) - [Privacy](https://lyricpatch.com/legal/privacy) - [DMCA](https://lyricpatch.com/legal/dmca) - [Model licenses](https://lyricpatch.com/about/licenses) - Support: support@lyricpatch.com