@abacus-ai/cli

中文文档
2.10.16发布于 2026/11/07SEE LICENSE IN LICENSE.txt零依赖近 30 天下载 1万

Coding agent for your terminal, with any model: one Abacus AI plan, your ChatGPT subscription, your own API keys, or local models.

原始使用文档
文档目录7 节
  1. Install
  2. Bring your own models
  3. Why developers pick it
  4. Scripting and CI
  5. Useful commands
  6. Docs and support
  7. Data and privacy

Abacus AI CLI is a coding agent for your terminal that works with any model: one Abacus.AI plan with every frontier model, the ChatGPT subscription you already have, your own API keys, or local models. It reads your project, plans, edits files and runs commands, and you decide how much it does on its own.

Install

macOS, Linux and WSL:

curl -fsSL https://static.abacus.ai/cli/install.sh | bash

Windows (PowerShell):

irm https://static.abacus.ai/cli/install.ps1 | iex

Or with npm (Node 18 or later), for package-managed or mirrored environments:

npm install -g @abacus-ai/cli

Then start it in your project and sign in with /login:

cd your-project && abacusai

Abacus AI CLI showing two file edits as colored diffs: input validation added to createTodo in src/todos.ts and a new test in src/todos.test.ts

Bring your own models

  • One Abacus.AI plan. Claude, GPT and Gemini families plus open models such as Kimi, Qwen, DeepSeek and GLM in one picker. RouteLLM can pick a model for each turn.
  • Your ChatGPT subscription. If Codex is signed in with ChatGPT, the CLI detects it and offers those models. Nothing to configure, no credentials copied, no Abacus.AI credits spent.
  • Your API keys. OpenAI, Anthropic and Google keys from OPENAI_API_KEY, ANTHROPIC_API_KEY and GEMINI_API_KEY, or saved with /providers to the encrypted credential file the CLI and the extension share.
  • Local and OpenAI-compatible models. Ollama, LM Studio, vLLM, Groq, Together, OpenRouter, DeepSeek or any OpenAI-compatible endpoint.
  • Local mode. With a local provider, the agent loop runs on your machine and nothing about the turn reaches Abacus.AI. A local-only setting hides the hosted catalogue entirely.

Switch models mid-conversation with /model, even across providers.

Why developers pick it

  • Permission modes for every task. Auto (default), Supervise, Accept edits, Plan and Unsupervised. Switch with Shift+Tab or /mode, and fine-tune with allow, ask and deny rules.
  • Command-safety analysis. Shell commands are parsed across bash, zsh, fish, PowerShell and cmd. Read-only ones run straight away, risky ones come with a reason.
  • Real undo. Checkpoints snapshot your working tree apart from your own git history. /rewind takes the conversation and the code back to any earlier message.
  • Steer while it works. Queue a follow-up with Enter, or steer the current turn with Ctrl+Enter.
  • VS Code bridge. In VS Code's integrated terminal it follows your active file and selection, reads language-server diagnostics and opens edits awaiting your approval in the native diff viewer.
  • Skills and MCP. MCP servers over stdio, HTTP or SSE with OAuth, plus reusable skills. /import brings a Claude Code setup across: CLAUDE.md, MCP servers, permission rules, skills and commands.
  • Reads real files. PDFs, Word, PowerPoint, Excel and images, plus fast search on very large repos.
  • Runs where you work. macOS, Linux (glibc and Alpine), Windows x64 and ARM64, WSL, SSH and containers. Windows gets a bundled POSIX shell, so bash commands work without WSL.
  • Updates that do not break. The native binary updates itself with an atomic swap and rolls back if a new version fails to start.
  • Keyboard first. Vim mode, @ file mentions, ! for shell commands, and an optional fullscreen view.

Scripting and CI

Print mode runs the same agent without the interface:

abacusai -p "update the changelog for this release" --output-format json
git diff | abacusai -p "review this change"

Use --output-format stream-json with --input-format stream-json for a streaming protocol, --json-schema for structured answers, and -r to resume a conversation. Set ABACUS_API_KEY to sign in from CI. Run abacusai --help for every flag.

Useful commands

CommandWhat it does
/modelSwitch models
/providersAdd API keys and local or OpenAI-compatible models
/permissionsEdit allow, ask and deny rules
/rewindGo back to an earlier message
/resumePick up a past conversation
/mcpManage MCP servers
/skillsSearch, install and manage skills
/importBring over a Claude Code setup
/usageSee usage and plan limits

Docs and support

Data and privacy

Your code is not used for training. Abacus.AI has zero data retention agreements with model providers, and data is encrypted in transit. With a local provider, nothing about the turn reaches Abacus.AI. See the privacy policy and terms of service.

版本与发布记录

@abacus-ai/cli 共发布 305 个版本,首次发布于 2025/11/05;过去 12 个月发布了 302 个版本。

版本发布日期距今
2.10.16latest2026/11/071 天前
2.10.16-canary.5canary2026/11/052 天前
2.10.16-canary.42026/11/043 天前
2.10.16-canary.32026/11/043 天前
2.10.16-canary.22026/11/043 天前
2.10.16-canary.12026/11/044 天前

其他发布通道:next → 2.2.14-next.0,rc → 2.3.1,canary → 2.10.16-canary.5。

关于 @abacus-ai/cli 的常见问题

@abacus-ai/cli 是什么?

Coding agent for your terminal, with any model: one Abacus AI plan, your ChatGPT subscription, your own API keys, or local models.

如何安装 @abacus-ai/cli?

在项目目录运行 npm install @abacus-ai/cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 abacusai,可以用 npx abacusai 直接运行。

@abacus-ai/cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/abacus-ai__cli 是否存在。

@abacus-ai/cli 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@abacus-ai/cli 可以商用吗?

@abacus-ai/cli 使用 SEE LICENSE IN LICENSE.txt 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@abacus-ai/cli 的下载量有多少?

根据 npm 官方下载统计,@abacus-ai/cli 在 2026/10/05 – 2026/11/03 这 30 天内被下载 10,284 次,日均约 343 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@abacus-ai/cli 还在维护吗?

最新版本 2.10.16 发布于 2026/11/07(1 天前);至今共发布 305 个版本,其中过去 12 个月发布了 302 个;首次发布于 2025/11/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。