/candle:candle-setupfrom candle
Installs the Candle CLI, authorizes a device via browser, sets up a self-custody vault and TEE wallet for an agent, and provisions an agent API key with appropriate scopes.
Ships in candle. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Runs Candle's device-authorization flow: a CLI request turns into a browser approval, and the approval turns into two local credentials, a device token that manages API keys and an agent API key carrying the scopes you actually saw and approved. Every other skill that writes (candle-launch, candle-trade, candle-webhooks) depends on the key this produces. For an agent that trades from the terminal, it also sets up the two custody tiers: the vault (Tier 1, self-custody on this machine) and a TEE wallet (Tier 2, agent access) promoted out of it. Custody tiers are not the account plans (Free, Pro, Max).
This is the setup skill; there is no prerequisite. The candle-market skill's read tools never need any of this: they work with no key at all.
curl -fsSL https://candle.tv/install.sh | bash, or with Homebrew:
brew install candledottv/tap/candle. On macOS 12 or earlier use the npm package, which runs on
Node: npm i -g @candledottv/cli. With no npm and no install.sh:
bunx github:candledottv/agentic candle auth login.candle setup. It is the onboarding wizard and safe to re-run: it authorizes this device
when it is not already authorized, prints the agent wallets as funding destinations, shows the
skill and MCP install lines, and finishes with the full candle doctor check. candle auth login
does only the authorization step. The CLI defaults to the alpha API
(https://api.alpha.candle.tv); pass --api-url only to target a different deployment.
Omitting --scopes mints a Write key: launch:write, launch:read, account:read,
activity:write and swap:write. It trades and launches and cannot move funds; moving funds
takes the Withdraw level. Pass your own --scopes list to mint a narrower key instead. A device
login cannot request transfer:bound (see step 7).swap:write is never granted silently: the screen calls
it out prominently as the grant that moves funds from the account's own wallet, before you can
approve anything. Click Approve. The CLI's poll then returns a device token (cndl_dvc_...,
scoped only to key management) and an agent API key (cndl_live_... or cndl_test_...).~/.config/candle/credentials.enc), never plaintext. On a headless box with no keyring
available, set CANDLE_KEYRING_PASSPHRASE so the CLI can use the encrypted-file backend without
a TTY.candle vault init creates it with one passphrase factor (eight generated words, shown once;
--own-passphrase to type your own) and a 24-word recovery phrase, and no key yet.
candle vault phrase show displays the 24 words on the terminal for paper backup, and
candle vault new-key --chain solana --label treasury derives a key. Add a FIDO2 security key
with candle vault factor add security-key (two keys make a recoverable pair), then prove a copy
with candle vault backup --to <path>. Touch ID and passkey factors are built but not released
yet: they wait on Apple's approval of the signed helper, and the CLI refuses them until then.
The vault is the user's to open; an agent never gets its passphrase or security key.candle vault promote --from <cold label> derives a fresh wallet pinned to that cold key; candle vault promote --in-place <label> --sweep-to <cold label> --rpc-url <url> promotes an existing key at its own address;
candle vault promote-batch --pairs-from <file> --rpc-url <url> does many at once. An EVM vault key
(candle vault new-key --chain evm) promotes the same way into a Hood TEE wallet, with
--sweep-to naming a cold EVM vault key. Each
promote shows what is being handed over. --in-place and promote-batch ask the user to type
confirm; --from shows the vault key it sweeps home to in groups of four and asks for confirm. --to-key <prefix|label> binds the wallet to another of the user's keys. The pinned vault key is where
candle tee sweep and candle vault demote send funds home. Trade the wallet from the machine
that promoted it, because its relay signer stays there. Every Solana command uses --rpc-url,
else CANDLE_SOLANA_RPC_URL, else the profile's RPC (candle profile set <name> --rpc-url),
else the public endpoint (which refuses a promote's token-authority scans, so pass your own);
only vault restore's gap scan needs --rpc-url itself.candle keys create --access read|write|withdraw (read-write and read-write-transfer remain aliases for write and
withdraw): Read changes nothing, Read:Write trades and launches and
cannot move funds, and only Read:Write:Transfer (Withdraw) can move funds: between the account's
own wallets, to approved addresses, and out of its TEE wallet with candle transfer. A perps-only
key, --access trade-perps (account:read plus perps:write), is in @candledottv/cli 0.11.33. A Write key
minted before 2026-10-08 still holds transfer:write and lists as custom. The levels
and the active key limit are in https://docs.candle.tv/developers/agent-access#access-levels, and
what a trusted wallet allows in https://docs.candle.tv/developers/agent-wallets#trusted-wallets.
candle keys list and candle keys revoke <prefix> manage them, and candle keys wallets <prefix> shows which wallets a key's profile may use. candle keys access <prefix|label|self> --access ... changes an existing key's level in place (same key, wallets and caps; widening
needs the device token and is confirmed at a terminal, self can only narrow), and --history
lists its changes. A new key cannot spend the account's embedded wallet unless created with
--embedded-wallet allow (the default is deny), or later allowed with candle keys update <prefix|label> --embedded-wallet allow.candle doctor any time: one PASS/FAIL/SKIP table over the runtime, the storage backend,
both credentials, API reachability, wallet delegation, the install method and whether the
security key helper is installed.candle wallets shows the account's embedded and linked wallets, with Signer and Trusted
columns. candle wallets import --chain solana (or evm) links a wallet the user already owns:
the private key is read from --key-file or a hidden prompt, never a command argument, and is
sealed before it leaves the machine. candle wallets revoke <wallet-id> unlinks one.CANDLE_API_KEY and
CANDLE_DEVICE_TOKEN in the environment and every command works with no storage backend at
all.The full custody guide is https://docs.candle.tv/developers/cli-custody, and every command and flag is in https://docs.candle.tv/developers/cli.
Match the task, not the noun: "make this key use these wallets" is a rebind, not keys wallets set.
| I want to | Run |
|---|---|
| Give a key TEE wallets, or move them to another key | candle tee rebind <wallets...> --to-key <key> (or --label-prefix <p> for many) |
| Let a key use a linked wallet you imported | The agent console's Agents tab, signed in (keys wallets set from a key can only narrow) |
| Turn a vault key into a TEE wallet | candle vault promote --in-place <label> --sweep-to <cold key>, or --from <cold key> for a fresh one |
| Send funds out of a TEE wallet as the agent | candle transfer --to vault --asset <A> --amount <n|max> --wallet <tee> (or --to a linked or trusted wallet) with a Read:Write:Transfer key |
| Send funds anywhere yourself | candle vault transfer <address> --amount <n|max> --asset <A> --from <label> |
| Change a key's access level | candle keys access <prefix> --access read|read-write|read-write-transfer |
| Mark wallets as yours so agents can send to them | candle wallets trust <selectors...> |
| Stop an agent | candle tee disable <address>, then candle keys revoke <prefix> |
| Bring everything home | candle tee disable <address>, then candle tee sweep <address> or candle vault demote <address> (--emergency: see below) |
Neither credential is ever written to a config file, logged, or printed, except candle keys create
showing a new key's plaintext exactly once, at the moment it is issued. Keys are labeled with the
device that minted them, and revoking a device offers to revoke every key it minted in the same
atomic action, so containing a suspected compromise is one step; audit candle keys list afterward
to confirm. Device revocation itself happens on the Authorized devices screen of the agents
console (/agents), not from the CLI: a device token is deliberately unable to revoke its own
device, so a stolen token cannot erase its own trail.
Never run a promote, a confirm prompt, or a vault unlock on the user's behalf: those are the
owner's decisions, typed by the owner. If an agent's key or wallet may be compromised, the path is
stop, sweep, new wallet: candle tee disable <address>, then candle tee sweep <address> --rpc-url <url> (add --emergency when the API is down or the key is revoked; if the API answers, an
enabled wallet is still refused, so disable first), and revoke the key. The full procedure is
https://docs.candle.tv/developers/cli-custody#in-an-emergency.
"Set up Candle so my agent can trade."
candle setup and approve in the browser, confirming swap:write is one of the grants
named on the screen.candle vault init, write down the 24 words from candle vault phrase show,
and derive a cold key with candle vault new-key --chain solana --label treasury.candle vault promote --from treasury to create the agent's TEE wallet, then
fund it.candle doctor to confirm credentials and wallet delegation are healthy.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
23 skills in this plugin
/candle-agent-operations[OPERATIONS] Run long-lived trading workers and data collectors so they recover from crashes without losing state, never extend their own run, report health truthfully, and hand over cleanly to the next agent session. Use when deploying a trading worker or collector that runs for hours or days, when a worker has crashed, hung or restarted, and when ending a session that leaves workers running./candle-book-limits[RISK CONTROL] Size and audit the lifetime caps, slot counts and wallet reserves of an autonomous trading book so they bound risk without silently stopping the book or blocking its exits. Use when designing a book's limits, when a running book has gone quiet, when an order is stuck unresolved, and when two books share one wallet./candle-npx claudepluginhub candledottv/agentic --plugin candle