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:--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:3. Configure Unprice
Create a config API key in the Unprice dashboard and store it asUNPRICE_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:
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 asUNPRICE_TOKEN. Tell
the agent that publication is complete:
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.