plandex

plandex-aiMIT长期未更新

开源 AI 编码代理,专为大型项目和真实开发任务设计,能在命令行里理解代码库并自动完成多文件改动。

Open source AI coding agent. Designed for large projects and real world tasks.

server/v2.2.1发布于 2025-07-16 16:21 UTC15,905star +5 / 7 天1,191fork同步于 2026-11-10 23:27 UTC

怎么上手

由 README 提炼,执行前请确认
curl -sL https://plandex.ai/install.sh | bash
export OPENROUTER_API_KEY=...
plandex
硬件要求按 README 说明

README 未说明显存或 GPU 要求;CLI 为单行零依赖安装,服务端可用 Docker 本地自托管,模型推理依赖所配置的模型提供商 API。

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

项目说明

由 README 自动翻译提炼

面向大型项目的终端 AI 编码代理,可分步规划并执行跨多文件的复杂任务

开源 AI 编码代理,专为大型项目和真实开发任务设计,能在命令行里理解代码库并自动完成多文件改动。

核心能力

  • 用累积 diff 沙箱隔离 AI 改动,确认后再应用
  • 默认模型包提供约 2M token 有效上下文
  • 用 tree-sitter 生成项目地图并做语法校验
  • 支持多厂商模型组合与上下文缓存降本
  • 可全自动加载文件、执行命令并自动调试

容易踩的坑

Windows 只能在 WSL 中运行,CMD 和 PowerShell 不支持;需自备 OpenRouter 或其他模型提供商的 API key;Plandex Cloud 已于 2025-10-03 起停止接纳新用户,需改用本地自托管模式。

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

最近发版

5 个版本server/v2.2.1
  1. cli/v2.2.1Release cli/v2.2.12025-07-16 · 2025-07-16 16:54 UTC
    查看更新说明

    🖇️  Connect your Claude Pro or Max subscription

    If you have a Claude Pro or Max subscription, Plandex can use it when calling Anthropic models. You can use it in either Integrated Models Mode on Plandex Cloud, or in BYO Key Mode (whether on Cloud or self-hosting).

    Assuming you're using Anthropic models (which the default model pack does), you'll be asked if you want to connect your Claude subscription the first time you run Plandex. Follow the instructions to connect.

    Learn more in the docs.

    🐞  Bug fixes

    Fixed an issue with custom models and providers.

  2. server/v2.2.1Release server/v2.2.1最新正式版2025-07-16 · 2025-07-16 16:21 UTC

    See CLI 2.2.1 release notes.

  3. cli/v2.2.0Release cli/v2.2.02025-07-01 · 2025-07-01 21:36 UTC
    查看更新说明

    This is a big release that is mainly focused on Plandex's model provider and model config system. It significantly increases model provider flexibility, makes custom model configuration much easier, reduces costs on Cloud, and adds built-in support for Ollama.

    🔌  Model provider flexibility for BYO key mode

    • Now when using Plandex in BYO key mode (either Cloud or self-hosted), you can easily use Plandex with a wide range of built-in model providers.

    • Apart from OpenRouter and the OpenAI API (which were already built-in), built-in providers now include:

      • Anthropic API
      • Google AI Studio
      • Google Vertex AI
      • Azure OpenAI
      • AWS Bedrock
      • DeepSeek API
      • Perplexity API
      • Ollama (for local models—see below for details)
    • See the new model provider docs for more details.

    plandex-model-providers

    🛟  Provider fallback

    • When API keys/credentials are provided for multiple providers for a model, Plandex will fail over to the last valid provider if the first one fails. This is especially useful when using a direct provider (like OpenAI or Anthropic) alongside OpenRouter. If the direct call fails, Plandex will fall back to OpenRouter, which has its own internal fallback system across multiple providers. You get the best of both worlds: direct access by default, with no additional cost or latency, plus multi-layered resilience in case of stability issues.

    💰  5.5% price reduction for Plandex Cloud Integrated Models mode

    • Thanks to the new model provider system described above, Plandex Cloud with Integrated Models mode can now make direct provider calls under the hood rather than defaulting to OpenRouter, which allows us to avoid OpenRouter's 5.5% surcharge on model calls and pass the savings on to you. OpenRouter is still used as a fallback for added resilience.

    ⚙️  JSON-based model config with IDE support

    • Plandex now supports JSON-based model config, which make it much easier to try out different models, different settings, and to use custom models, providers, and model packs.

    • The new JSON model config system integrates cleanly with your IDE or editor. When you first edit model settings, Plandex will prompt you to set a preferred editor, and the JSON config file will be opened in that editor.

    • Model config files use JSON schemas, which allows for autocomplete, validation, and inline documentation/type hints in most IDEs and editors.

    • Check out the new docs for model settings and custom models for full details.

    set-model and set-model default commands

    • set-model has been simplified to work with the new system. If run without arguments, you'll be prompted to either select a built-in or custom model pack, or to directly edit the current plan's model config inline in JSON. You can also pass it a model pack name (set-model daily-driver) or jump straight to the JSON settings with set-model --json.

    • set-model default works the same way, but allows you to configure the default model settings for new plans.

    plandex-model-settings-json

    models custom command

    • models custom is a new all-in-one command for managing custom providers, models, and model packs in one place. It replaces the models add, models delete, model-packs create, model-packs update, and model-packs delete commands.

    • The first time you run it, if you haven't already configured any custom models or model packs, an example config file will be created to get you started. If you do already have custom models or model packs configured, the config file will be populated with those models and model packs.

    ![plandex-custom-models-json](https://github.co

  4. server/v2.2.0Release server/v2.2.02025-07-01 · 2025-07-01 21:21 UTC
    查看更新说明

    See CLI 2.2.0 release notes.

  5. server/v2.1.8Release server/v2.1.82025-06-08 · 2025-06-08 19:42 UTC
    查看更新说明
    • Fix for potential hang in file map queue

用户点评

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

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

    README 原文

    未翻译

    Discord GitHub Repo stars Twitter Follow

    💻  Plandex is a terminal-based AI development tool that can plan and execute large coding tasks that span many steps and touch dozens of files. It can handle up to 2M tokens of context directly (~100k per file), and can index directories with 20M tokens or more using tree-sitter project maps.

    🔬  A cumulative diff review sandbox keeps AI-generated changes separate from your project files until they are ready to go. Command execution is controlled so you can easily roll back and debug. Plandex helps you get the most out of AI without leaving behind a mess in your project.

    🧠  Combine the best models from Anthropic, OpenAI, Google, and open source providers to build entire features and apps with a robust terminal-based workflow.

    🚀  Plandex is capable of full autonomy—it can load relevant files, plan and implement changes, execute commands, and automatically debug—but it's also highly flexible and configurable, giving developers fine-grained control and a step-by-step review process when needed.

    💪  Plandex is designed to be resilient to large projects and files. If you've found that others tools struggle once your project gets past a certain size or the changes are too complex, give Plandex a shot.

    Smart context management that works in big projects

    • 🐘 2M token effective context window with default model pack. Plandex loads only what's needed for each step.

    • 🗄️ Reliable in large projects and files. Easily generate, review, revise, and apply changes spanning dozens of files.

    • 🗺️ Fast project map generation and syntax validation with tree-sitter. Supports 30+ languages.

    • 💰 Context caching is used across the board for OpenAI, Anthropic, and Google models, reducing costs and latency.

    Tight control or full autonomy—it's up to you

    • 🚦 Configurable autonomy: go from full auto mode to fine-grained control depending on the task.

    • 🐞 Automated debugging of terminal commands (like builds, linters, tests, deployments, and scripts). If you have Chrome installed, you can also automatically debug browser applications.

    Tools that help you get production-ready results

    • 💬 A project-aware chat mode that helps you flesh out ideas before moving to implementation. Also great for asking questions and learning about a codebase.

    • 🧠 Easily try + combine models from multiple providers. Curated model packs offer different tradeoffs of capability, cost, and speed, as well as open source and provider-specific packs.

    • 🛡️ Reliable file edits that prioritize correctness. While most edits are quick and cheap, Plandex validates both syntax and logic as needed, with multiple fallback layers when there are problems.

    • 🔀 Full-fledged version control for every update to the plan, including branches for exploring multiple paths or comparing different models.

    • 📂 Git integration with commit message generation and optional automatic commits.

    Dev-friendly, easy to install

    • 🧑‍💻 REPL mode with fuzzy auto-complete for commands and file loading. Just run plandex in any project to get started.

    • 🛠️ CLI interface for scripting or piping data into context.

    • 📦 One-line, zero dependency CLI install. Dockerized local mode for easily self-hosting the server. Cloud-hosting options for extra reliability and convenience.

    Workflow  🔄

    Examples  🎥

    Install  📥

    curl -sL https://plandex.ai/install.sh | bash
    

    Note: Windows is supported via WSL. Plandex only works correctly on Windows in the WSL shell. It doesn't work in the Windows CMD prompt or PowerShell.

    More installation options.

    Hosting  ⚖️

    OptionDescription
    Plandex CloudWinding down as of 10/3/2025 and no longer accepting new users. Learn more.
    Self-hosted/Local Mode• Run Plandex locally with Docker or host on your own server.• Use your own OpenRouter.ai key (or other model provider accounts and API keys).• Follow the local-mode quickstart to get started.

    Provider keys  🔑

    export OPENROUTER_API_KEY=... # if using OpenRouter.ai
    

    Claude Pro/Max subscription  🖇️

    If you have a Claude Pro or Max subscription, Plandex can use it when calling Anthropic models. You'll be asked if you want to connect a subscription the first time you run Plandex.

    Get started  🚀

    First, cd into a project directory where you want to get something done or chat about the project. Make a new directory first with mkdir your-project-dir if you're starting on a new project.

    cd your-project-dir
    

    For a new project, you might also want to initialize a git repo. Plandex doesn't require that your project is in a git repo, but it does integrate well with git if you use it.

    git init
    

    Now start the Plandex REPL in your project:

    plandex
    

    or for short:

    pdx
    

    Docs  🛠️

    👉  Full documentation.

    Discussion and discord  💬

    Please feel free to give your feedback, ask questions, report a bug, or just hang out:

    Follow and subscribe

    Contributors  👥

    ⭐️  Please star, fork, explore, and contribute to Plandex. There's a lot of work to do and so much that can be improved.

    Here's an overview on setting up a development environment.