@ainative/cody-cli

中文文档
0.12.86发布于 2026/10/08SEE LICENSE IN LICENSEES Module近 30 天下载 5365

AI-powered terminal coding assistant with 21+ coding models, persistent agent memory, MCP servers, and semantic code search. Hobbyist tier starting at $5/mo.

原始使用文档
文档目录8 节
  1. Install
  2. Quick Start
  3. Models
  4. Features
  5. Documentation
  6. Agents: Self-Provision Here
  7. Community
  8. License

Cody CLI

AINative Studio's AI-powered coding assistant. A full-featured terminal-based AI coding tool with streaming chat, tool use, MCP server support, and OAuth authentication.

Install

# npm (global)
npm install -g @ainative/cody-cli

# npx (no install)
npx @ainative/cody-cli

# curl installer (macOS / Linux)
curl -fsSL https://ainative.studio/install-cody.sh | sh

Quick Start

# Install
npm install -g @ainative/cody-cli

# Start coding (no account needed)
cody

# Single prompt
cody -p "Write a function to sort an array"

Models

ModelProviderBest For
gpt-oss-120b (default)CerebrasFast coding with tool support
zai-glm-4.7CerebrasFast coding
llama-3.3-70b-instructMetaStrong analysis
llama-4-scoutMeta512K context
qwen-coder-32bQwenDeep coding (paid)

Features

  • Streaming chat — real-time token streaming with Ink-based TUI
  • Tool use — file read/write, bash execution, search
  • MCP servers — connect to Model Context Protocol servers
  • OAuth 2.1 + PKCE — secure browser-based authentication
  • Settings sync — sync preferences across devices
  • Auto-update — checks for new versions automatically

Documentation

GuideDescription
ArchitectureSystem design and build pipeline
DevelopmentSetup, build, and contribute
DistributionPackaging, publishing, and releases
TestingE2E test suite and CI
OAuth GuideAuthentication flow details
ModelsAvailable models and selection

Agents: Self-Provision Here

Point your agent here to programmatically self-provision AINative services — no human required:

https://ainative.studio/agent.md

DNS discovery: dig TXT _agents.ainative.studio

Supports OpenClaw agents, MCP-native agents, and any agent that can follow onboarding instructions.

Community

License

UNLICENSED — All Rights Reserved. Copyright (c) 2026 AINative Studio.

版本与发布记录

@ainative/cody-cli 共发布 277 个版本,首次发布于 2026/04/02;过去 12 个月发布了 277 个版本。

版本发布日期距今
0.12.86latest2026/10/0828 天前
0.12.85stable2026/09/081 个月前
0.12.842026/09/071 个月前
0.12.832026/08/282 个月前
0.12.822026/08/232 个月前
0.12.812026/08/222 个月前

关于 @ainative/cody-cli 的常见问题

@ainative/cody-cli 是什么?

AI-powered terminal coding assistant with 21+ coding models, persistent agent memory, MCP servers, and semantic code search. Hobbyist tier starting at $5/mo.

如何安装 @ainative/cody-cli?

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

@ainative/cody-cli 支持 TypeScript 吗?

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

@ainative/cody-cli 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@ainative/cody-cli 需要什么版本的 Node.js?

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

@ainative/cody-cli 可以商用吗?

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

@ainative/cody-cli 的下载量有多少?

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

@ainative/cody-cli 还在维护吗?

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