Trae Agent

An LLM-based agent for general software engineering tasks, delivered via a powerful CLI.

Stars
★ 12k
Last updated
10mo ago
FARS reviewed
Nov 08, 2026
License
MIT
Primary language
Python

At a glance

How it runs
CLI
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
Python 3.12+UVDocker (optional)Shell / CLINetwork accessLocal filesystem
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

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).

  1. A developer quickly fixes a bug in a repository by running trae-cli run "Fix the bug in main.py".
  2. A developer generates unit tests or documentation for an existing project.
  3. A researcher uses the modular architecture to run ablation studies or develop new agent capabilities.
  4. A user runs tasks in an isolated Docker container to avoid local environment changes.
  5. 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

FARS trust-control audit

Not found in source — apply before daily use
  • 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?

Pros
  • 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.
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Major gaps
50/ 100 5-point scale 2.5 / 5
Trust 11/29
Reliability 8/14
Adaptability 10/18
Convention 10/18
Effectiveness 7/13
Verifiability 4/8
Why each dimension lost points
Trust11 / 29 · 1.9/5

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.

Reliability8 / 14 · 2.9/5

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.

Adaptability10 / 18 · 2.8/5

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.

Convention10 / 18 · 2.8/5

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.

Effectiveness7 / 13 · 2.7/5

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.

Verifiability4 / 8 · 2.5/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision e839e559ac61
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/trae-agent.svg)](https://followagents.com/en/agents/trae-agent)
<a href="https://followagents.com/en/agents/trae-agent"><img src="https://followagents.com/badge/trae-agent.svg" alt="FARS review"></a>

FAQ

How do I set up my API key?
Edit the trae_config.yaml file or set environment variables like OPENAI_API_KEY.
Can I use local models?
Yes, via providers like Ollama.
Can I record execution trajectories?
Yes, use the --trajectory-file flag or let it auto-generate.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts