Brickken SDK and CLI

Ship tokenization from your code or your terminal

Brickken's API has two clients built for developers writing code: the SDK and the CLI. Both cover the documented workflows: asset tokenization through the Brickken API, ERC-8004 agent identity and agent-owned tokens, and ERC-8226 RAMS mandates.

Node 20+ · Browser · Edge · ESM + CommonJS
Why the SDK

More than a wrapper: typed, validated, prepare-by-default

The SDK turns Brickken's documented backend into a typed operating layer, so invalid states fail inside your process instead of on the wire.

One client, three namespaces

A single Brickken instance covers assets tokenization workflows, agentic operations and RAMS mandates.

Typed from input to result

Typed methods, a consistent WriteResult shape, and fourteen error classes your application can branch on.

Invalid states fail locally

Credential, signer, execution-mode and configuration conflicts are rejected before a request leaves your process.

Keys stay in your process

Sign x402 authorizations, client-controlled transactions and RAMS typed data without transmitting private keys to Brickken.

One SDK instance

Three namespaces. One integration layer.

Each namespace preserves the credential and execution rules of the workflow underneath it.

The three brickken-sdk namespaces, the credential each one accepts and the workflows it covers
Namespace Credential Covers
Dapp workflowstokenization.*sto.*network.* API key Tokenization, STOs, security-token operations and platform reads.
Agentic workflowsagent.*agentToken.*feedback.* API key or x402 ERC-8004 agent identity, reputation and agent-owned ERC-20 tokens.
RAMS mandatesrams.* API key or x402 ERC-8226 mandate lifecycle, mandate checks, EIP-712 typed data and roles.
Los tres espacios de nombres de brickken-sdk, la credencial que acepta cada uno y los flujos que cubre
Espacio de nombres Credencial Cobertura
Flujos Dapptokenization.*sto.*network.* Clave de API Tokenización, STO, operaciones con security tokens y consultas de la plataforma.
Flujos de agentesagent.*agentToken.*feedback.* Clave de API o x402 Identidad de agentes ERC-8004, reputación y tokens ERC-20 propiedad de agentes.
Mandatos RAMSrams.* Clave de API o x402 Ciclo de vida de mandatos ERC-8226, comprobaciones de mandatos, datos tipados EIP-712 y roles.
Les trois espaces de noms de brickken-sdk, l’identifiant accepté par chacun et les flux couverts
Espace de noms Identifiant Couverture
Flux Dapptokenization.*sto.*network.* Clé API Tokenisation, STO, opérations sur security tokens et lectures de la plateforme.
Flux d’agentsagent.*agentToken.*feedback.* Clé API ou x402 Identité d’agents ERC-8004, réputation et tokens ERC-20 détenus par des agents.
Mandats RAMSrams.* Clé API ou x402 Cycle de vie des mandats ERC-8226, vérifications des mandats, données typées EIP-712 et rôles.
Os três namespaces de brickken-sdk, a credencial aceita por cada um e os fluxos que cobre
Namespace Credencial Cobertura
Fluxos Dapptokenization.*sto.*network.* Chave de API Tokenização, STOs, operações com security tokens e consultas à plataforma.
Fluxos de agentesagent.*agentToken.*feedback.* Chave de API ou x402 Identidade de agentes ERC-8004, reputação e tokens ERC-20 de propriedade de agentes.
Mandatos RAMSrams.* Chave de API ou x402 Ciclo de vida de mandatos ERC-8226, verificações de mandatos, dados tipados EIP-712 e funções.
Controlled execution

Prepare first. Execute explicitly.

Every write returns prepared transactions by default. Passing execute: true is a deliberate opt-in to signing and sending.

  1. Call a typed method

    A typed method on the namespace you need, with typed input and a consistent result shape.

  2. Validate locally

    Credential, signer and execution-mode conflicts are rejected before the request leaves your process.

  3. Prepare transactions

    Every write returns prepared transactions by default. Nothing is signed or broadcast.

    Nothing sent
  4. Select an execution mode

    client-signed, client-broadcast or brickken-relayed.

  5. Send and inspect

    Opt in with execute: true, then branch on a typed WriteResult.

The three brickken-sdk execution modes, showing who signs, who broadcasts and what each mode requires
Mode Who signs Who broadcasts Requires
client-signed You Brickken Signer and signerAddress
client-broadcast You You Signer, address and an RPC endpoint
brickken-relayed Brickken relayer Brickken x402 payment, no API key

Per-call payment

x402: pay per operation, no shared key

The SDK signs x402 payment authorizations inside your process; no key is transmitted.

  1. Agentic writes

    ERC-8004 identity operations and agent-owned token operations accept either an API key or x402.

  2. RAMS mandates

    ERC-8226 lifecycle actions accept either credential; some RAMS writes remain client-signed regardless. ERC-8226 mandates run on Ethereum Sepolia at launch.

  3. Relayed execution

    brickken-relayed mode requires x402 and is unavailable when an API key is configured.

An API key and an x402 payment are alternative credential modes, never layers.
Sending both on the same request does not expand authority and is rejected locally before the request leaves your process.

Wallet agnostic

Use the wallet stack you already operate

Three signer adapters ship as separate imports, and the Signer interface lets institutional teams sign through their existing KMS or MPC provider.

Keys stay inside your environment.
The SDK receives signing capability, not custody of the key.

Private key
Nothing beyond the SDK

ethers v6
Optional dependency

viem
‍
A viem account or WalletClient

Custom
‍
Your own KMS or MPC implementation

Scriptable access

Brickken CLI: the same API, from the terminal

The Brickken CLI runs the documented Brickken workflows from the command line. It covers investor KYC, tokenization and offering workflows, ERC-8004 agent identity, agent-owned tokens and ERC-8226 RAMS mandates, plus raw prepare, sign, send and status flows for documented JSON methods. Multipart token-document uploads use the REST API. It is prepare-only by default and returns machine-readable JSON, so it fits scripts and CI as well as interactive use.

The six brickken-cli commands and the Brickken API workflows each one covers
Command Covers
kyc Create API-key-authenticated investor KYC links.
agent Register and manage ERC-8004 agent identity and reputation.
token-economics Create, mint, burn, transfer and approve agentic ERC-20 tokens.
rams ERC-8226 mandates, mandate checks, executor actions, reads and EIP-712 signatures.
tx Raw prepare, sign, send and status flows for any Brickken API method.
skill Install the Brickken Skill into an agent's skills directory.
Los seis comandos de brickken-cli y los flujos de la API de Brickken que cubre cada uno
Comando Cobertura
kyc Crea enlaces KYC para inversores mediante autenticación con una clave de API.
agent Registra y gestiona la identidad y reputación de agentes ERC-8004.
token-economics Crea, acuña, quema, transfiere y aprueba tokens ERC-20 de agentes.
rams Mandatos ERC-8226, comprobaciones de mandatos, acciones del ejecutor, consultas y firmas EIP-712.
tx Flujos directos de preparación, firma, envío y consulta de estado para cualquier método de la API de Brickken.
skill Instala la Brickken Skill en el directorio de skills de un agente.
Les six commandes de brickken-cli et les flux de l’API Brickken couverts par chacune
Commande Couverture
kyc Créez des liens KYC pour les investisseurs avec authentification par clé API.
agent Enregistrez et gérez l’identité et la réputation d’agents ERC-8004.
token-economics Créez, émettez, détruisez, transférez et approuvez des tokens ERC-20 d’agents.
rams Mandats ERC-8226, vérifications des mandats, actions de l’exécuteur, lectures et signatures EIP-712.
tx Flux directs de préparation, signature, envoi et suivi d’état pour toute méthode de l’API Brickken.
skill Installez la Brickken Skill dans le répertoire de skills d’un agent.
Os seis comandos de brickken-cli e os fluxos da API da Brickken que cada um cobre
Comando Cobertura
kyc Crie links KYC para investidores com autenticação por chave de API.
agent Registre e gerencie a identidade e a reputação de agentes ERC-8004.
token-economics Crie, emita, queime, transfira e aprove tokens ERC-20 de agentes.
rams Mandatos ERC-8226, verificações de mandatos, ações do executor, consultas e assinaturas EIP-712.
tx Fluxos diretos de preparação, assinatura, envio e consulta de status para qualquer método da API da Brickken.
skill Instale a Brickken Skill no diretório de skills de um agente.
  1. Prepare-only by default
  2. Machine-readable JSON output
  3. Local or relayed signing
  4. API key or x402
Read the CLI docs

Built for technical teams

Put Brickken inside the product your users already know

Fintech platforms

Typed tokenization workflows in an existing product and engineering stack

Financial institutions

Controlled transaction flows connected to internal systems and custody architecture

Software providers

Tokenized-asset operations without rebuilding the protocol and transaction layer

Agent developers

Agent identity, token and mandate workflows inside your own runtime

Build on Brickken

Defined responsibility:
what the SDK does, what your team does

The SDK runs inside your application. Your team controls implementation, secrets, wallet architecture, transaction review, testing, monitoring and the surrounding customer experience.

Division of responsibility between brickken-sdk and the team integrating it
The SDK does Your team does
Validates credential, signer and execution-mode combinations locally Chooses the credential and execution model for each namespace.
Defaults every write method to prepare-only Reviews the prepared transactions and opts in to execution.
Signs through the adapter you configure, without transmitting a key Holds the keys in its own signing environment: private key, KMS or MPC.
Returns a consistent WriteResult and fourteen typed error classes Owns the branching, retries, testing and monitoring around them.
Ships typed methods and documentation for the same API as the CLI Owns implementation, release process and customer experience.
Surface choice

Other ways to reach the same workflows

Prefer plain HTTP, a terminal or an AI agent? The REST API, the CLI and the MCP server cover the same documented workflows, and the Agent Skill helps a coding agent pick one. Compare them on the developers overview.

Brickken API

You are calling from any other language.

Brickken MCP Server

An AI agent should operate Brickken.

Brickken Skill

A coding agent needs to know which surface to pick.

Frequently asked questions

Find quick answers to common questions about how Brickken works, its features, and how it supports your tokenization journey.
Can I use an API key and x402 together?
Can I use my own KMS or MPC wallet?
Does the SDK ever send my private key to Brickken?
How does the SDK use x402?
What does the Brickken CLI do that the SDK does not?
What is Brickken SDK?
Which runtimes does the SDK support?