
终端中的DeepSeek原生AI编码助手,优化前缀缓存以保持稳定运行
DeepSeek热度持续攀升,该项目以高性能前缀缓存优化提升终端编码效率,月增18k星
基于国产DeepSeek模型,支持中文场景,为国内开发者提供终端AI编码的实用参考
适合开发者直接在终端中使用AI辅助编码,实现高效代码补全、解释和生成
English · 简体中文 · Guide · Spec · Website · Discord
[!IMPORTANT] Reasonix 1.0 is a ground-up rewrite in Go — this branch (
main-v2) is the new default and where development happens now. The earlier0.xTypeScript releases are legacy, living on thev1branch (maintenance only). See the migration guide.npm i -g reasonixstays the install command —1.0.0+ delivers the Go binary,0.xis the legacy TS build.
A config- and plugin-driven harness — a single static Go binary, tuned around DeepSeek's prefix cache so token costs stay low across long sessions.
[!IMPORTANT] Community · 加入社区 — bilingual Discord for setup help (
#help/#求助), workflow showcases, and feature ideas. → https://discord.gg/XF78rEME2D
reasonix.toml. No hardcoded models.CGO_ENABLED=0 single binary; cross-compile
to six targets with one command. The only dependency is a TOML parser.npm i -g reasonix # any OS; pulls the prebuilt native binary
brew install esengine/reasonix/reasonix # macOS
Prebuilt archives (darwin|linux|windows × amd64|arm64) and SHA256SUMS are on
every GitHub release.
Windows builds are code-signed with a free certificate provided by the SignPath Foundation, with signing through SignPath.io.
make build # -> bin/reasonix(.exe)
make cross # -> dist/ (darwin|linux|windows × amd64|arm64)
reasonix setup # config wizard → ./reasonix.toml
export DEEPSEEK_API_KEY=sk-... # or let setup save it to the credential store
reasonix # then run /init to generate AGENTS.md (project memory)
reasonix run "implement the TODOs in main.go"
reasonix run --model deepseek-pro "add unit tests for this function"
echo "explain this code" | reasonix run
A minimal reasonix.toml — one provider and a default model — is enough to start:
default_model = "deepseek-flash"
[[providers]]
name = "deepseek-flash"
kind = "openai"
base_url = "https://api.deepseek.com"
model = "deepseek-v4-flash"
api_key_env = "DEEPSEEK_API_KEY"
Resolution order is flag > ./reasonix.toml > the user config file >
built-in defaults; starting with Reasonix v1.8.1, the user file lives at
~/.reasonix/config.toml on macOS/Linux and
%AppData%\reasonix\config.toml on Windows. See
Configuration paths for migration details. Secrets come from the environment via api_key_env, are
never written to config files, and new keys default to the OS credential store
with a Reasonix-owned file fallback. Project .env files are read as a
compatibility override, but Reasonix does not write new keys there. Permissions, the sandbox, plugins (MCP), slash
commands, @ references, and two-model setup are all in the
Guide.
@ references, two-model collaboration./rewind).If Reasonix has been useful and you'd like to say thanks, you can. It stays a coffee, not a contract — donations don't buy feature priority or change how issues get triaged.
A small list of folks whose work has shaped Reasonix the most — measured by both commit count and code volume. Listed alphabetically, no ordering of importance. The full contributor graph is on GitHub.
Also a separate thank-you to Bernardxu123 for designing the project logo, and to AIGC Link for promoting the project on XiaoHongShu.
MIT — see LICENSE
Built by the community at esengine/DeepSeek-Reasonix
同属 AI Agent 类型 · 适合同类用户的其他选择