kodus-ai

kodustech活跃维护

开源自托管的 AI 代码审查工具,可接入自己的 LLM,自动审查 PR 并给出评审意见,是 CodeRabbit 的替代方案。

Open source, self-hosted AI code review. Bring your own LLM.

selfhosted-2.2.10发布于 2026-11-09 16:15 UTC1,596star +23 / 7 天198fork同步于 2026-11-10 23:48 UTC

怎么上手

由 README 提炼,执行前请确认
git clone https://github.com/kodustech/kodus-ai.git
cd kodus-ai
yarn setup
硬件要求按 README 说明

自托管需 Docker 运行在自有 VM 上,至少 2 核 CPU、8 GB 内存、60 GB 可用磁盘;README 未说明 GPU 或显存要求,可自托管模型。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

可自托管的开源 AI 代码评审工具,接入你自己的 LLM 在 PR 里自动审查

开源自托管的 AI 代码审查工具,可接入自己的 LLM,自动审查 PR 并给出评审意见,是 CodeRabbit 的替代方案。

核心能力

  • 在 GitHub、GitLab、Bitbucket、Azure DevOps、Forgejo 的 PR 中直接评审
  • 自带 Key 接入 Claude、GPT、Gemini、Llama 或任意 OpenAI 兼容端点
  • 用自然语言编写 Kody Rules,按组织、仓库、路径限定生效范围
  • 自动追踪已关闭 PR 中未落实的建议并标记状态与严重级别
  • 提供 CLI,可对工作区、暂存区、分支或提交运行评审

容易踩的坑

自托管需向官方申请试用 license;自托管实例默认每天发送一次匿名心跳,需设 KODUS_TELEMETRY_DISABLED=true 关闭;社区版 Kody Rules 上限 10 条、插件上限 3 个。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本selfhosted-2.2.10
  1. cli-v0.4.222026-11-09 · 2026-11-09 17:54 UTC
    查看更新说明

    The CLI can now read the Token Usage and Cockpit dashboards with a logged-in user, including JSON output for further analysis.

    • kodus usage tokens: totals, cost and breakdowns by day, PR, developer, review run or model, with date and repository filters.
    • kodus cockpit: productivity, Kodus review, intent and code-area metrics.
    • kodus agents: inspect and manage custom agents.
    • Logged-in commands for Kody Rules, remote review settings and PR review history.

    Dashboard commands require kodus auth login; team keys do not cover them yet.

    npm install -g @kodus/[email protected]
    kodus auth login
    kodus usage tokens --by model --json
    

    Validation: CLI CI passed the build, skills validation, unit/end-to-end suite and integration tests. The five usage breakdowns were also queried successfully against production.

    Changes since CLI 0.4.21

  2. selfhosted-2.2.10Self-Hosted Release 2.2.10最新正式版2026-11-09 · 2026-11-09 16:15 UTC

    What's Changed

    Full Changelog: https://github.com/kodustech/kodus-ai/compare/2.2.13...selfhosted-2.2.10

  3. mcp-manager-2.1.72026-11-09 · 2026-11-09 13:40 UTC
    查看更新说明

    What's Changed

  4. web-1.2.132026-11-09 · 2026-11-09 13:39 UTC
    查看更新说明

    What's Changed

  5. 2.2.132026-11-09 · 2026-11-09 13:39 UTC
    查看更新说明

    What's Changed

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Why Teams Choose Kodus

    • Model Agnostic: Use Claude, GPT-5, Gemini, Llama, GLM, Kimi or any OpenAI-compatible endpoint.
    • Zero Markup on LLM Costs: You pay model providers directly. No hidden multipliers.
    • Learns from Your Context: Kody adapts to your architecture, standards, and workflow.
    • You Set the Rules: Define custom review rules in plain language.
    • Privacy & Security: Source code is not used to train models, data is encrypted in transit and at rest, and self-hosted runners are supported. Self-hosted instances send one anonymous heartbeat per day. It carries aggregated counters and no code, names, or identifiers. Opt out with KODUS_TELEMETRY_DISABLED=true. See Anonymous Telemetry.
    • Native Git Workflow: Works directly in PRs with GitHub, GitLab, Bitbucket, Azure DevOps, and Forgejo.
    • CLI + CI/CD Ready: Run reviews locally and in pipelines.
    • Operational Impact: Track technical debt and delivery metrics while keeping review quality high.

    Product Highlights

    In this example, Kody catches a critical IDOR risk where an organizationId query parameter could bypass tenant protection when passed as an array, then suggests an explicit runtime validation before the code is merged.

    Get Started

    Choose the workflow that matches how you want to use Kodus.

    Monorepo Structure

    Kodus is a monorepo with multiple applications and shared domain libraries.

    kodus-ai/
    ├── apps/
    │   ├── api/          # NestJS API
    │   ├── web/          # Next.js dashboard
    │   ├── worker/       # Review execution and queue consumers
    │   └── webhooks/     # Git provider webhook ingestion
    ├── libs/             # Shared NestJS domain modules (incl. libs/llm — LLM/BYOK layer)
    └── scripts/          # Dev, deploy, benchmark, and automation scripts
    
    PathPurpose
    apps/apiMain NestJS API for authentication, organizations, teams, Kody Rules, integrations, permissions, and code review orchestration.
    apps/webNext.js web application for the Kodus dashboard.
    apps/workerBackground service for code review execution, queue processing, suggestion checks, automation jobs, and monitoring tasks.
    apps/webhooksWebhook ingestion service for GitHub, GitLab, Azure Repos, Bitbucket, and Forgejo events.
    libsShared NestJS domain modules used across Kodus applications.
    libs/llmIn-repo LLM/BYOK abstraction layer for model providers.

    For full setup instructions, follow the Local Quickstart.

    Open Source vs. Teams vs. Enterprise

    FeatureCommunityTeamsEnterprise
    PriceFree$10/dev monthly or $8/dev annual (+ tokens/dev)Custom
    HostingSelf-hosted or hosted by KodusHosted by KodusSelf-hosted or hosted by Kodus
    Bring Your Own Key (BYOK)✅✅✅
    PR usageUnlimited PRs using your own API keyUnlimited PRs using your own API keyUnlimited PRs using Kodus AI Tokens API key
    UsersUnlimitedUnlimitedUnlimited
    Kody RulesUp to 10UnlimitedUnlimited
    Active pluginsUp to 3UnlimitedUnlimited
    Kody Memory✅✅✅
    Quality Radar issuesUnlimitedUnlimitedUnlimited
    Priority queue for Kody Agents❌✅✅
    Engineering Metrics / Cockpit❌✅✅
    SSO❌❌✅
    RBAC + audit logs + analytics❌❌✅
    Compliance❌❌SOC 2
    SupportDiscord Community SupportDiscord Community + Email SupportPrivate Discord + Email + up to 5h/month dedicated onboarding/support

    Compare all plan →

    Resources

    ResourceDescription
    WebsiteLearn more about Kodus, product capabilities, and pricing.
    DocumentationSetup guides, product docs, CLI usage, and self-hosting instructions.
    Kodus CloudStart using Kodus without managing infrastructure.
    Self-Host GuideDeploy Kodus in your own environment.
    CLI DocsRun AI code reviews locally, in CI/CD, or inside coding agents.
    Discord CommunityAsk questions, get setup help, and talk with the Kodus team.
    PricingCompare Community, Teams, and Enterprise editions.
    Schedule a CallTalk with the Kodus team about setup, self-hosting, or enterprise needs.

    Contributing

    We welcome contributions of all sizes 🧡

    Fix a typo, improve the docs, report a bug, suggest a feature, or open a pull request for something you think should exist.

    Not sure where to start? Open an issue or join the community. We’re happy to help.