Prompt
Ledger skills
Four agent skills take your agent through onboarding. The prompt above starts the first, which hands over toledger-catalog and ledger-integrate; both load ledger-concepts first.
ledger skills (and ledger init) writes the three CLI skills to .agents/skills/ in your repository, so they match the CLI version that runs their commands:
Written
ledger-setup is served at docs.integrateledger.com/skill.md, so the prompt always starts the current one. Codex, Cursor and other agents read .agents/skills/. For Claude Code and agents that read their own folder, the CLI’s last line links them:
ledger skills again after upgrading the CLI.
The skills run in Sandbox, never print your key, and publish nothing until you approve the diff.
A Sandbox without an account
Your agent can start before you make an API key. With noLEDGER_API_KEY set, the setup skill runs ledger agent start, which makes a Ledger Sandbox for your app with no account and gives the agent its key. It then shows you two choices:
- You already have a Ledger account. Open the approval link the agent shows you, within 10 minutes, and choose Connect agent. The agent gets a Sandbox key for your own workspace instead (
ledger agent wait), and the Sandbox it made is removed if nothing was built in it. - You don’t. The agent carries on in its Sandbox. At the end it gives you a claim link (
ledger agent claim): open it within 10 minutes, sign up, and the Sandbox, with everything the agent set up, becomes your workspace. The agent’s key keeps working.
ledger agent init does the whole setup in one run: it gitignores .env and .ledger/, writes the skills, reuses a working Sandbox key or makes a Sandbox as agent start does, and prints the workspace, the approval link if it made one, and the next step (--json for agents). Running it again changes nothing.
Other agents can use the same routes the CLI does: POST /v1/agent/provision with { "name" } returns { workspaceId, apiKey, approval: { url, pollToken, expiresAt } }. POST /v1/agent/approval/poll with { "pollToken" } answers pending, denied or expired, or once { status: "approved", workspaceId, apiKey }. With the provisioned key, POST /v1/agent/approval makes a new approval link and POST /v1/agent/claim a claim link. These routes are for agents; your app itself uses the SDKs.
Sources for agents
Every page also has a menu at the top, next to the title, to copy it as Markdown, open it in Claude or ChatGPT, or connect the MCP server to Cursor or VS Code.
Connect the docs MCP server
Integrate without the skills
For any agent, with or without skills, paste this instead. It plans first, then builds the integration in Sandbox.Prompt
Rules
- The skills and
ledger agent initaccept Sandbox keys (ledger_test_) and refuse Live keys. - Agent keys reach Sandbox. You go Live from the dashboard.
- Approval and claim links expire after 10 minutes.
- Each network address can make 2 keyless Sandboxes an hour.
- A keyless Sandbox nobody claims is deleted after 30 days without activity.
Next steps
Quickstart
The same integration, step by step.
API reference
Every endpoint, with requests and responses.