The open source coding agent. https://opencode.ai/

Kit Langton 43e2617e72 feat: unwrap McpAuth, McpOAuthCallback namespaces to flat exports + barrel 8 horas atrás
.github df9eafa92c Update VOUCHED list 1 dia atrás
.husky 0b63cae1ae fix: update pre-push hook to allow caret version differences (#9876) 2 meses atrás
.opencode bd29004831 feat: enable type-aware no-misused-spread rule, fix 8 violations (#22749) 17 horas atrás
.vscode 066a876f3d docs(contributing): Add "Setting up a Debugger" section (#4421) 5 meses atrás
.zed 1bb8574179 app: refactor server management backend (#13813) 1 mês atrás
github 80f1f1b5b8 feat: enable type-aware no-floating-promises rule, fix all 177 violations (#22741) 17 horas atrás
infra cce05c1665 fix: clean up 49 unused variables, catch params, and stale imports (#22695) 18 horas atrás
nix ef6c26c730 chore: update nix node_modules hashes 13 horas atrás
packages 43e2617e72 feat: unwrap McpAuth, McpOAuthCallback namespaces to flat exports + barrel 8 horas atrás
patches 63035f977f fix: enable thinking for zhipuai-coding-plan & prevent Korean IME truncation (#22041) 5 dias atrás
script 80f1f1b5b8 feat: enable type-aware no-floating-promises rule, fix all 177 violations (#22741) 17 horas atrás
sdks cce05c1665 fix: clean up 49 unused variables, catch params, and stale imports (#22695) 18 horas atrás
specs 16c60c9ee7 refactor(session): extract sharing orchestration (#21759) 6 dias atrás
.editorconfig dd22cb2bb0 chore: add .editorconfig (#536) 9 meses atrás
.gitignore 6926fe1c74 fix: stabilize release changelog generation (#19987) 2 semanas atrás
.oxlintrc.json bd29004831 feat: enable type-aware no-misused-spread rule, fix 8 violations (#22749) 17 horas atrás
.prettierignore e0e32ed3a8 desktop: add more basic menu bar items 2 meses atrás
AGENTS.md 672ee28635 fix(opencode): avoid org lookup during config startup (#22670) 21 horas atrás
CONTRIBUTING.md fc1addb8f4 ignore: tweak contributing md (#14168) 1 mês atrás
LICENSE ef3fd5900f docs: cleanup casing 10 meses atrás
README.ar.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.bn.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.br.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.bs.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.da.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.de.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.es.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.fr.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.gr.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.it.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.ja.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.ko.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.no.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.pl.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.ru.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.th.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.tr.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.uk.md eb9eb5e334 feat: Add Vietnamese README and update all language navigation links … (#16322) 1 mês atrás
README.vi.md e1cf761d29 chore: generate 1 mês atrás
README.zh.md 7c5ed771c3 fix: update Feishu community links for zh locales (#18975) 3 semanas atrás
README.zht.md 7c5ed771c3 fix: update Feishu community links for zh locales (#18975) 3 semanas atrás
SECURITY.md e4b548fa76 docs: add policy about AI-generated security reports 1 mês atrás
STATS.md 008ad54cb5 ignore: update download stats 2026-01-29 2 meses atrás
bun.lock 8b3b608ba9 chore: generate 14 horas atrás
bunfig.toml 351ddeed91 Permission rework (#6319) 3 meses atrás
flake.lock 235a82aea9 chore: update flake.lock (#18976) 3 semanas atrás
flake.nix 19b1222cd8 feat(nix): expose overlay for downstream use (#12643) 2 meses atrás
install 4018c863e3 fix: baseline CPU detection (#13371) 2 meses atrás
package.json 80f1f1b5b8 feat: enable type-aware no-floating-promises rule, fix all 177 violations (#22741) 17 horas atrás
session.json e16589f8b5 tweak(ui): session spacing (#20839) 21 horas atrás
sst-env.d.ts 01c5eb679c go: support coupon 1 semana atrás
sst.config.ts a90f2b9723 ci: fix 3 meses atrás
tsconfig.json 925ce6503e sync 6 meses atrás
turbo.json c72642dd35 test(ci): publish unit reports in actions (#20547) 1 semana atrás

README.ar.md

شعار OpenCode

وكيل برمجة بالذكاء الاصطناعي مفتوح المصدر.

Discord npm Build status

English | 简体中文 | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Dansk | 日本語 | Polski | Русский | Bosanski | العربية | Norsk | Português (Brasil) | ไทย | Türkçe | Українська | বাংলা | Ελληνικά | Tiếng Việt

OpenCode Terminal UI


التثبيت

# YOLO
curl -fsSL https://opencode.ai/install | bash

# مديري الحزم
npm i -g opencode-ai@latest        # او bun/pnpm/yarn
scoop install opencode             # Windows
choco install opencode             # Windows
brew install anomalyco/tap/opencode # macOS و Linux (موصى به، دائما محدث)
brew install opencode              # macOS و Linux (صيغة brew الرسمية، تحديث اقل)
sudo pacman -S opencode            # Arch Linux (Stable)
paru -S opencode-bin               # Arch Linux (Latest from AUR)
mise use -g opencode               # اي نظام
nix run nixpkgs#opencode           # او github:anomalyco/opencode لاحدث فرع dev

[!TIP] احذف الاصدارات الاقدم من 0.1.x قبل التثبيت.

تطبيق سطح المكتب (BETA)

يتوفر OpenCode ايضا كتطبيق سطح مكتب. قم بالتنزيل مباشرة من صفحة الاصدارات او من opencode.ai/download.

المنصة التنزيل
macOS (Apple Silicon) opencode-desktop-darwin-aarch64.dmg
macOS (Intel) opencode-desktop-darwin-x64.dmg
Windows opencode-desktop-windows-x64.exe
Linux .deb او .rpm او AppImage
# macOS (Homebrew)
brew install --cask opencode-desktop
# Windows (Scoop)
scoop bucket add extras; scoop install extras/opencode-desktop

مجلد التثبيت

يحترم سكربت التثبيت ترتيب الاولوية التالي لمسار التثبيت:

  1. $OPENCODE_INSTALL_DIR - مجلد تثبيت مخصص
  2. $XDG_BIN_DIR - مسار متوافق مع مواصفات XDG Base Directory
  3. $HOME/bin - مجلد الثنائيات القياسي للمستخدم (ان وجد او امكن انشاؤه)
  4. $HOME/.opencode/bin - المسار الافتراضي الاحتياطي

    # امثلة
    OPENCODE_INSTALL_DIR=/usr/local/bin curl -fsSL https://opencode.ai/install | bash
    XDG_BIN_DIR=$HOME/.local/bin curl -fsSL https://opencode.ai/install | bash
    

Agents

يتضمن OpenCode وكيليْن (Agents) مدمجين يمكنك التبديل بينهما باستخدام زر Tab.

  • build - الافتراضي، وكيل بصلاحيات كاملة لاعمال التطوير
  • plan - وكيل للقراءة فقط للتحليل واستكشاف الكود
    • يرفض تعديل الملفات افتراضيا
    • يطلب الاذن قبل تشغيل اوامر bash
    • مثالي لاستكشاف قواعد كود غير مألوفة او لتخطيط التغييرات

بالاضافة الى ذلك يوجد وكيل فرعي general للبحث المعقد والمهام متعددة الخطوات. يستخدم داخليا ويمكن استدعاؤه بكتابة @general في الرسائل.

تعرف على المزيد حول agents.

التوثيق

لمزيد من المعلومات حول كيفية ضبط OpenCode، راجع التوثيق.

المساهمة

اذا كنت مهتما بالمساهمة في OpenCode، يرجى قراءة contributing docs قبل ارسال pull request.

البناء فوق OpenCode

اذا كنت تعمل على مشروع مرتبط بـ OpenCode ويستخدم "opencode" كجزء من اسمه (مثل "opencode-dashboard" او "opencode-mobile")، يرجى اضافة ملاحظة في README توضح انه ليس مبنيا بواسطة فريق OpenCode ولا يرتبط بنا بأي شكل.

FAQ

ما الفرق عن Claude Code؟

هو مشابه جدا لـ Claude Code من حيث القدرات. هذه هي الفروقات الاساسية:

  • 100% مفتوح المصدر
  • غير مقترن بمزود معين. نوصي بالنماذج التي نوفرها عبر OpenCode Zen؛ لكن يمكن استخدام OpenCode مع Claude او OpenAI او Google او حتى نماذج محلية. مع تطور النماذج ستتقلص الفجوات وستنخفض الاسعار، لذا من المهم ان يكون مستقلا عن المزود.
  • دعم LSP جاهز للاستخدام
  • تركيز على TUI. تم بناء OpenCode بواسطة مستخدمي neovim ومنشئي terminal.shop؛ وسندفع حدود ما هو ممكن داخل الطرفية.
  • معمارية عميل/خادم. على سبيل المثال، يمكن تشغيل OpenCode على جهازك بينما تقوده عن بعد من تطبيق جوال. هذا يعني ان واجهة TUI هي واحدة فقط من العملاء الممكنين.

انضم الى مجتمعنا Discord | X.com