/solana-ai-kit:deployfrom solana-ai-kit
Deploys a Solana program to devnet or mainnet with safety checks. Handles key sync, funding, IDL publishing, verification, and requires explicit user approval for mainnet.
Ships in solana-ai-kit. Installing the plugin adds it to Claude Code.
Deploy the workspace program(s) to the cluster in $ARGUMENTS (default devnet). Squads upgrade proposals, rollback and cost tables: deployment.md.
solana config get and solana address: confirm the RPC URL and the deployer. Keep keypair paths under ~/.config/solana/ out of commands (the secrets hook blocks them) and rely on the configured default signer.anchor keys sync so declare_id! and Anchor.toml match target/deploy/<name>-keypair.json, then rebuild with /build-program. Skipping this gives DeclaredProgramIdMismatch at runtime.solana airdrop 2 (rate-limited; fall back to the web faucet). Cost: solana rent <size of the .so in bytes>; the deploy needs about twice that until the buffer closes.anchor deploy --provider.cluster devnet, or solana program deploy target/deploy/<name>.so -u devnet.anchor idl init --filepath target/idl/<name>.json the first time, anchor idl upgrade --filepath target/idl/<name>.json after upgrades.solana program show <PROGRAM_ID> (authority, data length) and run the integration tests against devnet..program-id-devnet and in the app env (e.g. NEXT_PUBLIC_PROGRAM_ID).Start only when the user asks for mainnet, and first report which preconditions are missing: /audit-solana with no open Critical or High findings; tests and fuzzing pass; a devnet deployment exercised the real flows; the upgrade-authority plan is decided; an external audit for programs that hold user funds.
anchor build for the IDL and types, then solana-verify build --library-name <lib> last (needs Docker). It rewrites target/deploy/<lib>.so in the image that anchor verify and solana-verify verify-from-repo rebuild in; a later anchor build overwrites it. Deploy that file: anchor deploy --provider.cluster mainnet (it doesn't rebuild), or solana program deploy target/deploy/<lib>.so --url mainnet-beta --with-compute-unit-price <micro-lamports> --use-rpc, so the write transactions land under congestion. Don't deploy anchor build --verifiable output (target/verifiable/): Anchor builds it in its own image, so it won't match the verifier's rebuild.anchor verify <PROGRAM_ID> --current-dir -- -um (or --repo-url <URL> --commit-hash <SHA> -- -um). It errors without one of the two, and --provider.cluster never reaches solana-verify, so the cluster goes after --. Then solana program dump <PROGRAM_ID> dump.so --url mainnet-beta and diff it against the deployed file. The dump is zero-padded to the ProgramData size, so hash equal lengths: head -c $(wc -c < target/deploy/<lib>.so) dump.so | shasum -a 256 against shasum -a 256 target/deploy/<lib>.so. Confirm the upgrade authority with solana program show..program-id-mainnet, deployment-mainnet.json (programId, deployedAt, deployer, upgradeAuthority, commit) and the production app env.After a deploy, merge what it proved into the Build Status table of .claude/context/build.md: the program ID for the cluster, the mainnet deploy date and slot, the upgrade authority and the verified-build commit, each with its source. Follow build-md-format.md (install: bash .claude/bin/skills.sh add startup-builder): read the file first, touch only those rows, append milestones rather than rewriting them, and update Updated. Skip this when the project has no build.md and the pack is not installed.
| Stage | Authority | Command |
|---|---|---|
| Launch to ~3 months | Deployer key on a hardware wallet, so fixes ship fast | none |
| ~3 months, stable | Squads vault address (not the multisig account) | solana program set-upgrade-authority <ID> --new-upgrade-authority <VAULT> --skip-new-upgrade-authority-signer-check |
| Audited and battle-tested | None, irreversible; the user runs it (blocked for Claude) | solana program set-upgrade-authority <ID> --final |
extend, program and buffer closes and authority changes stop for the user's approval on every cluster. The prompt names the cluster it resolved (from -u/--url/--provider.cluster, else Anchor.toml or solana config). On mainnet, get the step 1 go-ahead first; the prompt is a second check, not a replacement.--final, solana program close --bypass-warning, solana program-v4 finalize and spl-token authorize --disable can't be undone, so they are blocked for Claude. Give the user the exact command to run.solana program deploy --buffer <buffer-keypair> once the user has recovered that keypair from the printed seed phrase (solana-keygen recover), or reclaim the SOL with solana program close --buffers.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
54 commands in this plugin
/add-skillAdd SkillInstall a pinned skill extension on demand (/add-skill <id>), or list core packs and extensions/advShort for /adversarial: run every task through proposer and adversary pairs, no triage/adversarialStepsPut a task's load-bearing claims and key decisions through a proposer and an adversary, with proof/audit-infraPhase 1: SecretsAudit infra security: secrets, deps, CI/CD, webhooks, AI/skill files/audit-solanaRead before auditingAudit Solana program code for exploitable bugs and write a findings report/benchmarkStepsCompare per-instruction CU with the stored baseline to catch regressionsnpx claudepluginhub solanabr/ai-kit --plugin solana-ai-kitOther plugins' commands for the same job