Skip to main content
The Brickken CLI is the public terminal client for the Agentic API on Base. It prepares Brickken agentic transactions for free and pays the send through x402. In the recommended brickken-relayed mode, Brickken’s relayer signs and broadcasts the operation; in client-signed mode the CLI signs locally with your private key.

npm package

Install brickken-cli from npm.

GitHub repository

View the public source repository.

Install

You can also run it without a global install:

Authentication

The CLI is x402-only. It ignores BRICKKEN_API_KEY and BKN_API_KEY.
BKN_PRIVATE_KEY is accepted as an alias. The private key signs the x402 payment, and — in client-signed mode only — the blockchain transaction. In brickken-relayed mode it signs the x402 payment only.
Never paste production private keys into shared terminals, tickets, or chat logs. Prefer environment variables or an .env file that is not committed.

Environments

Override the API base URL directly when needed:

Network and RPC

Pass the target operation chain with --chain. Decimal and hex values are accepted. The Agentic API runs on Base, with Base Sepolia for tests. Some commands, especially create-token --execute, wait for a deployment receipt to recover tokenAddress. Set an RPC URL for that lookup:
BKN_RPC_URL is accepted as an alias, or pass --rpc-url.

Command Model

High-level commands are prepare-only by default, and preparing is free. Add --execute to also send and pay the x402 charge in one step. Add --json for machine-readable output. The recommended path is brickken-relayed mode: pass --execution-mode brickken-relayed and omit --signer-address — Brickken’s relayer signs and broadcasts. The default is client-signed, where you provide --signer-address and the CLI signs the prepared transaction locally.

Commands

AI Agent Skill

The npm package includes a Brickken skill at skills/brickken, built on the open Agent Skills format and compatible with any agent that supports it — Claude Code, OpenAI Codex, Gemini CLI, Cursor, GitHub Copilot, and more. Use it when an AI agent needs to choose between the Dapp API, Agentic API, CLI, or MCP. For standalone installation without a global CLI install, see the Skill documentation. After installing brickken-cli, install the skill into the default skills directory (~/.codex/skills):
Or pass --path to target your agent’s skills directory (for example ~/.claude/skills for Claude Code, ~/.gemini/skills for Gemini CLI, ~/.cursor/skills for Cursor):
To inspect where the bundled skill lives in the installed package:
Without a global install:

Agent Example

File Input

Use --file for nested JSON/YAML payloads, long metadata, or automation:
Preparing is free; only the send is x402-priced. Fund the wallet behind BRICKKEN_PRIVATE_KEY with enough USDC on the x402 payment chain (e.g. Circle USDC on Base Sepolia). In brickken-relayed mode Brickken’s relayer pays native gas; in client-signed mode you also need native gas on the operation chain.