Use @abstraxn/cli when you want a terminal-native Agent Kit experience: authenticate with your dashboard API key, list MCP tools, create agents, and chat with an LLM that calls those tools — without Cursor or a custom app.
Quick path: Dashboard setupnpm install -g @abstraxn/cliabstraxn loginabstraxn chat --setupabstraxn. For IDE-only MCP, see MCP in Cursor.

Prerequisites

Install

If npm install -g fails with permission errors, use a user-owned npm prefix (no sudo):
Package: npm @abstraxn/cli

Discover commands

The help output includes Quick start, Chat, On-chain transactions (mcp call), and Schedule a transaction examples. Inside chat, type /help for the same on-chain and scheduling tips.

Login

Interactive (welcome screen + prompts):
Non-interactive (CI / scripts):
Credentials are saved to ~/.abstraxn/config.json (file mode 600). See Credentials for what each secret is used for.
When prompted for an API key (login or chat --setup), input is masked as * while you type or paste — nothing is echoed in plain text.
Dev / local Agent Kit:

Chat with MCP tools

The CLI runs an interactive REPL where an LLM calls Agent Kit MCP tools on your behalf (same pattern as the sample backend chat loop).

1. Configure the LLM (once)

Or set environment variables:

2. Start chatting

One-shot question:

In-chat commands

Run abstraxn --help for the full command reference.

Default agent

Wallet-scoped tools need an agent. Create or pick one:
When a default agent is set, the CLI uses its per-agent apiKey for MCP automatically.

MCP commands (without chat)

mcp tools prints a ChatGPT-style grouped list: connection header, sections with short descriptions, and total tool count. See 5-minute smoke test for raw curl equivalents and MCP tools reference for every tool.

On-chain transactions

Use abstraxn mcp call for direct tool calls, or ask in chat with natural language.
In chat:
transfer and swap tools return unsigned transactions. Signing and broadcast require the agent accessKey on your backend — the CLI does not store it yet. See Credentials.

Schedule a transaction

Defer execution with scheduleInMinutes, scheduleInSeconds, or executeAt (ISO 8601) on transfer or swap tools.
Or in chat:
Schedulable tools: transfer, evm_swap_quote, uniswap_swap_quote, lifi_swap_quote, jupiter_swap_quote, oneinch_swap_quote. Success returns status: transaction_scheduled with scheduledTransactionId. For autonomous execution and integrator webhooks (delegated MCP from CLI), see Autonomous transactions.

Agent commands

agents create provisions an Abstraxn server wallet via @abstraxn/agent-kit (same as SDK quickstart). The wallet accessKey is shown once — the CLI does not persist it yet.

Configuration

Config file: ~/.abstraxn/config.json

What the CLI can and cannot do

The dashboard API key is not the wallet accessKey. The CLI stores the application key for MCP; signing still requires your backend. See Credentials.

Compare: CLI vs Cursor vs full app

Troubleshooting

More: Troubleshooting