Skip to main content
The Unprice skill teaches Codex, Claude Code, Cursor, and other skills-compatible agents how to configure pricing and integrate the TypeScript SDK. The agent inspects your project first, follows its architecture, and selects the Unprice operation that matches your paid action. The skill handles two separate jobs:
An agent cannot publish pricing. monetization.apply writes draft plan versions only. You must review and publish each draft in the Unprice dashboard.

1. Install the skill

Run this command at the root of your project:
The command installs the skill at project scope by default. Commit the installed skill when every developer and cloud agent should use the same Unprice instructions. Use --global when you want the skill available across your local projects. You can inspect the published skill on skills.sh.

2. Give the agent its first task

Open your coding agent in the same project and send this prompt:
The agent should inspect your package manager, framework, customer identity, service boundaries, environment validation, and test patterns before it proposes a change.

3. Configure Unprice

Create a config API key in the Unprice dashboard and store it as UNPRICE_CONFIG_TOKEN with your other server-side secrets. Do not paste the key into the prompt or commit it. Then tell the agent what you sell. Include each plan, its price and billing cadence, its features, and any usage allowance or customer spend cap. For example:
The agent calls monetization.get before it writes. After you approve the commercial model, it can call monetization.apply. The operation is safe to retry with the same document. It creates or reuses drafts and returns a reviewUrl. Open that link, review the result, and publish the plan versions yourself.

4. Add the runtime integration

After you publish the plan versions, create a runtime API key and store it as UNPRICE_TOKEN. Tell the agent that publication is complete:
The skill selects the runtime call from the commercial decision: The agent should keep API failures separate from valid commercial denials. It should also reuse the same idempotency key when it retries the same logical mutation.

See a complete example

The Unprice AI chatbot example uses the same workflow. Its configuration script inspects the current monetization model, applies draft changes, and returns a review URL. The runtime integration provisions customers, checks access, and reserves model spend before generation.

Integrate manually

Follow the SDK quickstart without an AI agent.

Choose the runtime call

Compare access checks, usage operations, and budgeted runs.