Trae Agent
An LLM-based agent for general software engineering tasks, delivered via a powerful CLI.
- Source repo
- bytedance/trae-agent
- Stars
- ★ 12k
- Last updated
- 10mo ago
- FARS reviewed
- Nov 08, 2026
- License
- MIT
- Primary language
- Python
- FA score
- 50/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI API · Claude API
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A developer quickly fixes a bug in a repository by running
trae-cli run "Fix the bug in main.py". - Not a fit if
- Users unwilling to manage API keys and YAML config: keys and config files are required
- Production teams needing stability: the project is still under active development
- Website
- trae.ai ↗ set on GitHub
- Maintenance
- No commits for 6+ monthslast commit 2026-02-05+0.7 ★/day over 7 days
- Source review
- 50/100 · Major gaps 1 safety controls not found
What does this agent do, and when should you use it?
Trae Agent is an LLM-based agent designed for general-purpose software engineering tasks. It provides a CLI interface that understands natural language instructions and executes complex workflows using a rich tool ecosystem (file editing, bash, etc.). It supports multiple LLM providers including OpenAI, Anthropic, Doubao, and local models via Ollama. The project emphasizes a transparent, modular architecture for research and extensibility, and includes features like trajectory recording and Docker mode. See the technical report for details.
Trae Agent receives natural language tasks via CLI, orchestrates LLM calls (e.g., Claude, GPT) to plan steps, and invokes tools like bash and file editors to complete tasks. It supports interactive mode, JSON trajectory recording, model provider switching, Docker container execution, and optional MCP services. The flow: user input → agent planning → tool calls → output (e.g., patches).
- A developer quickly fixes a bug in a repository by running
trae-cli run "Fix the bug in main.py". - A developer generates unit tests or documentation for an existing project.
- A researcher uses the modular architecture to run ablation studies or develop new agent capabilities.
- A user runs tasks in an isolated Docker container to avoid local environment changes.
- A team needs detailed execution logs for debugging complex tasks.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Config files
trae_config.yaml- Runtime
- Python 3.12+
How do you install or deploy this agent?
Clone and sync dependencies: git clone https://github.com/bytedance/trae-agent.git && cd trae-agent && uv sync --all-extras && source .venv/bin/activate. Requires Python 3.12+, UV, and an API key for your chosen LLM provider.
How do you use this agent?
Copy trae_config.yaml.example to trae_config.yaml, edit API credentials and model settings, then run trae-cli run "your task". Use --provider and --model flags to override, or use interactive mode. Check configuration with trae-cli show-config.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- confirmation before acting — Turn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
What are this agent's strengths and limitations?
- Modular, transparent architecture ideal for research and extension.
- Multi-provider support (OpenAI, Anthropic, Gemini, etc.) reduces vendor lock-in.
- Detailed trajectory recording aids debugging and analysis.
- Docker mode enables isolated execution.
- Requires Python 3.12+ and UV, raising environment setup overhead.
- Configuration is non-trivial, needing API keys and model parameters.
- Some features (Docker) depend on additional components.
- Actively developed, so stability may vary.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Trae Agent This agent | 50 · Major gaps | CLIFree + model costs | ★ 12k | 10mo ago | Python | OpenAI API · Claude API |
| Zeroshot Verification Loop | 67 · Some gaps | CLIFree + model costs | ★ 2.3k | today | Rust | Codex · Claude Code |
| ZhikunCode | 56 · Major gaps | Self-hosted serviceFree + model costs | ★ 552 | 1d ago | Java | OpenAI API · Claude API |
| VibeKit — Safety Layer for Coding Agents | 47 · Major gaps | CLIFree + model costs | ★ 1.9k | 1y ago | TypeScript | ChatGPT · Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The README describes multiple model services, optional MCP, bash and file-editing tools, and trajectories containing LLM interactions and tool use. This makes data flows more visible, but trajectories may contain sensitive content and the packet does not describe redaction or retention, so this is not full marks. API keys can be supplied through configuration or environment variables, and the README says the local config is Git-ignored; the packet does not show key access boundaries or confirmation controls. Running commands and editing project files are product capabilities, with no evidence of per-action confirmation or rollback guarantees. Docker is an optional isolation mode, but its permission boundary depends on configuration. Dependencies have lower bounds and a few pins, but no vulnerability review or lock information is shown. Copyright attribution is present, while publisher identity, maintenance responsibility, and update path are unclear.
The configuration priority, YAML and legacy JSON migration guidance, Python requirement, and CLI examples are broadly consistent; README and pyproject both show version 0.1.0, and the test samples show mocked LLM calls and bash error handling. Dependency ranges are broad and evidence about availability or recovery is limited, so dependency availability receives partial credit. The CLI provides readable errors for missing config and invalid working directories, and MCP cleanup is attempted after execution failures; the packet does not cover all exception paths.
The product is presented for general software engineering and lists interactive mode, Docker, multiple model providers, custom working directories, and configuration options for common scenarios and environments. Its capabilities include bash and file changes, but the packet does not define permission boundaries, tool safety limits, or exclusions. CLI entry points and interactive commands are described clearly. Installation requires Python 3.12 and UV, and Docker use is documented separately.
The README organizes installation, configuration, usage, tools, development, and troubleshooting, and points to tool and trajectory documentation. It provides copyable configuration and command examples, and the legacy JSON guide clearly marks that format as deprecated. The MIT license text is complete. The project is described as under active development, but the packet lacks a fuller limitations account, change history, or clearly identified maintainer; it points to contribution guidance and a roadmap without specifying responsibility or update commitments.
CLI task execution, interactive mode, tool combinations, and trajectory recording provide usable outputs and debugging material for software engineering tasks, with optional Docker execution. Cost-benefit evidence is limited: use requires a provider API key or local model setup, and costs depend on provider, model, and task length. The packet gives no cost, quality, or baseline comparison, so the score is conservative.
README claims about setup and configuration are partly corroborated by pyproject dependencies, the entry point, and CLI code; test samples provide limited cross-checks for error handling, configuration, and tool behavior. CI workflow files show intended check commands, but static review cannot establish their results, and this assessment does not infer that tests passed. Research positioning, breadth, and utility claims are mostly project statements, and the packet does not consistently distinguish fact from inference, so this does not receive a high score.
- Not found in source: confirmation before actingTurn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
- The agent can run bash commands and modify project files. Review tool configuration, working directory, and task instructions before use; use Docker isolation where appropriate.
- Execution trajectories record LLM interactions and tool use and may contain code or sensitive information; the packet does not describe redaction or retention.
- Model credentials are required, and the packet does not provide a dependency vulnerability review or lockfile.
FAQ
How do I set up my API key?
Can I use local models?
Can I record execution trajectories?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.