{"id":49220128,"url":"https://github.com/lexwdex/opencode","last_synced_at":"2026-05-23T19:01:15.790Z","repository":{"id":350885880,"uuid":"1208298077","full_name":"LeXwDeX/opencode","owner":"LeXwDeX","description":"全链路支持tools_hook,支持pre hook，1:1兼容cc hook api，内部TODO自动HOOK，支持/goal-20轮指令；没有干不完的活。","archived":false,"fork":false,"pushed_at":"2026-05-18T05:23:33.000Z","size":207372,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"stable","last_synced_at":"2026-05-18T07:49:01.978Z","etag":null,"topics":["opencode"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"anomalyco/opencode","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LeXwDeX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-12T04:49:00.000Z","updated_at":"2026-05-18T05:14:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/LeXwDeX/opencode","commit_stats":null,"previous_names":["lexwdex/opencode"],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/LeXwDeX/opencode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeXwDeX%2Fopencode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeXwDeX%2Fopencode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeXwDeX%2Fopencode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeXwDeX%2Fopencode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeXwDeX","download_url":"https://codeload.github.com/LeXwDeX/opencode/tar.gz/refs/heads/stable","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeXwDeX%2Fopencode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33408490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T18:09:33.147Z","status":"ssl_error","status_checked_at":"2026-05-23T18:09:31.380Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["opencode"],"created_at":"2026-04-24T02:09:39.799Z","updated_at":"2026-05-23T19:01:15.686Z","avatar_url":"https://github.com/LeXwDeX.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\n\n## 简介\n\n本项目是opencode官方版本的改版，内部有 ClaudeCode Hooks API的超集实现，Goal指令支持。可以hooks挂载memplace，gitnexus等插件。\n\n### 安装\n\n```bash\n# 直接安装 (YOLO)\ncurl -fsSL https://opencode.ai/install | bash\n\n# 软件包管理器\nnpm i -g opencode-ai@latest        # 也可使用 bun/pnpm/yarn\nscoop install opencode             # Windows\nchoco install opencode             # Windows\nbrew install anomalyco/tap/opencode # macOS 和 Linux（推荐，始终保持最新）\nbrew install opencode              # macOS 和 Linux（官方 brew formula，更新频率较低）\nsudo pacman -S opencode            # Arch Linux (Stable)\nparu -S opencode-bin               # Arch Linux (Latest from AUR)\nmise use -g opencode               # 任意系统\nnix run nixpkgs#opencode           # 或用 github:anomalyco/opencode 获取最新 dev 分支\n```\n\n\u003e [!TIP]\n\u003e 安装前请先移除 0.1.x 之前的旧版本。\n\n### 桌面应用程序 (BETA)\n\nOpenCode 也提供桌面版应用。可直接从 [发布页 (releases page)](https://github.com/anomalyco/opencode/releases) 或 [opencode.ai/download](https://opencode.ai/download) 下载。\n\n| 平台                  | 下载文件                              |\n| --------------------- | ------------------------------------- |\n| macOS (Apple Silicon) | `opencode-desktop-darwin-aarch64.dmg` |\n| macOS (Intel)         | `opencode-desktop-darwin-x64.dmg`     |\n| Windows               | `opencode-desktop-windows-x64.exe`    |\n| Linux                 | `.deb`、`.rpm` 或 AppImage            |\n\n```bash\n# macOS (Homebrew Cask)\nbrew install --cask opencode-desktop\n# Windows (Scoop)\nscoop bucket add extras; scoop install extras/opencode-desktop\n```\n\n#### 安装目录\n\n安装脚本按照以下优先级决定安装路径：\n\n1. `$OPENCODE_INSTALL_DIR` - 自定义安装目录\n2. `$XDG_BIN_DIR` - 符合 XDG 基础目录规范的路径\n3. `$HOME/bin` - 如果存在或可创建的用户二进制目录\n4. `$HOME/.opencode/bin` - 默认备用路径\n\n```bash\n# 示例\nOPENCODE_INSTALL_DIR=/usr/local/bin curl -fsSL https://opencode.ai/install | bash\nXDG_BIN_DIR=$HOME/.local/bin curl -fsSL https://opencode.ai/install | bash\n```\n\n### Agents\n\nOpenCode 内置两种 Agent，可用 `Tab` 键快速切换：\n\n- **build** - 默认模式，具备完整权限，适合开发工作\n- **plan** - 只读模式，适合代码分析与探索\n  - 默认拒绝修改文件\n  - 运行 bash 命令前会询问\n  - 便于探索未知代码库或规划改动\n\n另外还包含一个 **general** 子 Agent，用于复杂搜索和多步任务，内部使用，也可在消息中输入 `@general` 调用。\n\n了解更多 [Agents](https://opencode.ai/docs/agents) 相关信息。\n\n### 文档\n\n更多配置说明请查看我们的 [**官方文档**](https://opencode.ai/docs)。\n\n### 参与贡献\n\n如有兴趣贡献代码，请在提交 PR 前阅读 [贡献指南 (Contributing Docs)](./CONTRIBUTING.md)。\n\n### 基于 OpenCode 进行开发\n\n如果你在项目名中使用了 “opencode”（如 “opencode-dashboard” 或 “opencode-mobile”），请在 README 里注明该项目不是 OpenCode 团队官方开发，且不存在隶属关系。\n\n### 常见问题 (FAQ)\n\n#### 这和 Claude Code 有什么不同？\n\n功能上很相似，关键差异：\n\n- 100% 开源。\n- 不绑定特定提供商。推荐使用 [OpenCode Zen](https://opencode.ai/zen) 的模型，但也可搭配 Claude、OpenAI、Google 甚至本地模型。模型迭代会缩小差异、降低成本，因此保持 provider-agnostic 很重要。\n- 内置 LSP 支持。\n- 聚焦终端界面 (TUI)。OpenCode 由 Neovim 爱好者和 [terminal.shop](https://terminal.shop) 的创建者打造，会持续探索终端的极限。\n- 客户端/服务器架构。可在本机运行，同时用移动设备远程驱动。TUI 只是众多潜在客户端之一。\n\n---\n\n**加入我们的社区** [飞书](https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=738j8655-cd59-4633-a30a-1124e0096789\u0026qr_code=true) | [X.com](https://x.com/opencode)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexwdex%2Fopencode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flexwdex%2Fopencode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexwdex%2Fopencode/lists"}