Skip to content

Build your first agent

From nothing to a verified on-chain action in about five minutes. This is the happy path; every step links to the full reference when you need options.

Sign in to Candle with Google, X, or email. Candle creates the embedded, agent-ready wallet your agent will act from.

2. Delegate the chains your agent should use

Section titled “2. Delegate the chains your agent should use”

On your dashboard, authorize Candle’s signer for Solana, Hood, or both. You will see exactly what is being authorized before any prompt fires: the wallets, the scopes, the spend caps in force, and how to revoke. Delegation is revocable at any time; revoking makes the next launch or trade fail closed with DELEGATION_REVOKED, though your keys stay valid and resume if you re-approve.

Details: Wallets, delegation & custody.

Create a key with environment: "test" first (cndl_test_...). The key is shown once; store it. Keys carry scopes and per-key limits, and the dashboard always shows the limits a key actually gets right now, not just what it was issued with.

Working from a terminal instead of the dashboard? Install the Candle CLI, then one command authorizes the machine and provisions the key in the same breath, stored in your OS keychain:

Install the Candle CLI (macOS or Linux):
curl -fsSL https://candle.tv/install.sh | bash
or with Homebrew:
brew install candledottv/tap/candle
Then: candle setup

With no npm and no install.sh: bunx github:candledottv/agentic candle auth login.

Reference: Agent access & API keys, Candle CLI.

Terminal window
curl -X POST https://staging.api.candle.tv/api/v1/launch/headless/dry-run \
-H "x-api-key: cndl_test_..." \
-H "Content-Type: application/json" \
-d '{"name":"GLOW","symbol":"GLOW","imageUrl":"https://.../glow.png"}'

Or with the SDK:

import { CandleClient } from "@candledottv/agent-sdk"
const candle = new CandleClient({ apiKey: process.env.CANDLE_API_KEY })
await candle.dryRunLaunch({ name: "GLOW", symbol: "GLOW", imageUrl })

Reference: Headless launch API.

Switch to a production key and call /launch/headless (or launch()) instead of the dry-run route. Launches return a job you can poll; trades follow a build-and-confirm flow. See Agent trading API for the trade leg.

Poll the job, or subscribe once and let Candle tell you: Webhooks deliver signed events for the things your agent cares about. Every accepted action lands in your account’s activity, attributed to your key and verified on-chain before it counts.

If your agent runs inside Claude Code, Cursor, or any MCP client, skip the HTTP layer entirely: the Candle MCP server exposes the rail as tools (run it with candle mcp, or from npm as @candledottv/mcp), and five installable skills teach the agent the workflows themselves. In Claude Code that is one line:

/plugin marketplace add candledottv/agentic

Reference: Skills for coding agents.