Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ccall

基于 Claude Code 开源复刻的终端 AI 编程助手,支持 DeepSeek / OpenAI 兼容 API。

快速开始

一键安装(推荐)

git clone https://github.com/yourdadisco/ccall.git
cd ccall
bash setup.sh
ccall

setup.sh 会自动:

  1. 检测/安装 Bun 运行时
  2. 安装项目依赖
  3. 编译项目
  4. 引导输入 DeepSeek API Key
  5. 创建 ccall 终端命令

源码手动安装

环境要求

一定要最新版本的 Bun,不然一堆奇奇怪怪的 BUG!bun upgrade

  • 📦 Bun >= 1.3.11

安装 Bun:

# Linux 和 macOS
curl -fsSL https://bun.sh/install | bash

# Windows (PowerShell)
powershell -c "irm bun.sh/install.ps1 | iex"

安装后的操作:

  1. 让当前终端识别 bun 命令

    安装脚本会把 ~/.bun/bin 写入对应的 shell 配置文件。macOS 默认 zsh 环境通常会看到:

    Added "~/.bun/bin" to $PATH in "~/.zshrc"
    

    可以按安装脚本提示重启当前 shell:

    exec /bin/zsh

    如果你使用 bash,重新加载 bash 配置:

    source ~/.bashrc

    Windows PowerShell 用户关闭并重新打开 PowerShell 即可。

  2. 验证 Bun 是否可用

    bun --help
    bun --version
  3. 如果已经安装过 Bun,更新到最新版本

    bun upgrade

安装与构建

cd ccall
bun install         # 安装依赖
bun run build       # 构建项目(产物输出到 dist/)

构建采用 code splitting 多文件打包,输出 dist/cli.js + chunk 文件。构建出的版本 bun 和 node 都可以启动。

运行

# 开发模式(直接运行源码,无需构建)
bun run dev

# 构建后运行
ccall                     # 交互式 REPL
ccall -p "你的问题"       # 单次查询
ccall --help              # 查看帮助
ccall --version           # 查看版本

配置

默认使用 DeepSeek API,通过环境变量配置:

export OPENAI_API_KEY=sk-xxx
export OPENAI_BASE_URL=https://api.deepseek.com/v1
export OPENAI_MODEL=deepseek-chat

也支持 OpenAI / Anthropic / Gemini / Grok 等。

首次运行后,在 REPL 中输入 /login 命令进入登录配置界面,选择对应提供商即可。

About

No description, website, or topics provided.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages