@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 setup →
npm install -g @abstraxn/cli → abstraxn login → abstraxn chat --setup → abstraxn. For IDE-only MCP, see MCP in Cursor.Prerequisites
- Node.js 18+
- Application API key from Dashboard → Agentic Stack → Overview
- For chat: an OpenAI-compatible LLM API key (OpenRouter, OpenAI, etc.)
Install
@abstraxn/cli
Login
Interactive (welcome screen + prompts):~/.abstraxn/config.json (file mode 600). See Credentials for what each secret is used for.
| Flag | Description |
|---|---|
--api-key <key> | Application API key from dashboard Overview |
--base-url <url> | Agent Kit REST base (default: https://agent-kit.abstraxn.com) |
--mcp-url <url> | MCP endpoint (default: {baseUrl}/mcp) |
--no-welcome | Skip welcome screen |
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)
2. Start chatting
In-chat commands
| Command | Action |
|---|---|
/exit | Leave chat |
/clear | Clear conversation history |
/help | Show commands |
Default agent
Wallet-scoped tools need an agent. Create or pick one:apiKey for MCP automatically.
MCP commands (without chat)
curl equivalents and MCP tools reference for every tool.
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
| Variable | Purpose |
|---|---|
ABSTRAXN_API_KEY | Application API key (overrides config) |
ABSTRAXN_MCP_URL / MCP_SERVER_URL | MCP endpoint |
ABSTRAXN_AGENT_KIT_BASE_URL / AGENT_KIT_BASE_URL | REST base URL |
LLM_API_KEY / OPENAI_API_KEY | LLM provider API key |
LLM_BASE_URL | OpenAI-compatible API base |
LLM_MODEL | Model id |
What the CLI can and cannot do
| Capability | CLI | Notes |
|---|---|---|
tools/list, read-only MCP tools | Yes | After login |
| Chat + tool loop | Yes | Needs LLM_API_KEY |
| Create / list agents | Yes | Via @abstraxn/agent-kit |
transfer broadcast | No | Needs stored accessKey on a backend |
x402 paymentPayload signing | No | Use SDK + backend |
Compare: CLI vs Cursor vs full app
| Abstraxn CLI | Cursor MCP | Full app | |
|---|---|---|---|
| Install | npm i -g @abstraxn/cli | Cursor mcp.json | NestJS + Next.js sample |
| Chat UX | Terminal REPL | IDE chat | Your web UI |
| LLM | BYOK (OpenRouter, etc.) | Cursor model | Your choice |
| Agent create | abstraxn agents create | REST / SDK | SDK in backend |
| Signing | Not yet | Not in IDE alone | Backend + accessKey |
Troubleshooting
| Issue | Fix |
|---|---|
abstraxn: command not found | Add ~/.local/bin to PATH after global install |
Not logged in | Run abstraxn login or set ABSTRAXN_API_KEY |
| MCP 401 | Check API key from Overview |
LLM API key not configured | Run abstraxn chat --setup |
| Multiple agents / wallet tools fail | abstraxn agents use <uuid> |