Skip to main content
AgentCompass is developed from a source checkout. Install it in editable mode from the repository root, then configure model access on the Setup page.

Requirements

  • Python 3.10 or newer (3.12+ recommended).
  • git for cloning and updating the source checkout.
  • wget and unzip for automatic dataset preparation.
  • Optional runtime dependencies for selected environments, such as Docker, Modal, Daytona, or HBox credentials.

Clone Repository

git clone https://github.com/open-compass/AgentCompass.git
cd AgentCompass

Install System Tools

sudo apt-get update && sudo apt-get install -y wget unzip

Install Python Dependencies

Choose one setup path. Replace <compatible_python_version> with a supported Python version, such as 3.12 or 3.13.
python -m venv .venv
source .venv/bin/activate

python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -e .
For the SWE-bench Verified quick start, install the benchmark and harness extras in the same environment:
uv pip install -r requirements/swe.txt
uv pip install -r requirements/mini-swe-agent.txt
The Docker quick start also requires Docker to be installed and running:
docker version

Verify Installation

If the environment is activated:
agentcompass --version

agentcompass --help

agentcompass list benchmark
If you are using uv and prefer not to activate .venv:
uv run agentcompass --version

uv run agentcompass --help

uv run agentcompass list benchmark

Update From Source

Pull the latest source with rebase to keep local commits on top of upstream changes, then reinstall editable dependencies when requirements or package metadata change. Commit or stash local edits before rebasing.
git pull --rebase
source .venv/bin/activate

python -m pip install -r requirements.txt
python -m pip install -e .

Data, Cache, And Output Directories

AgentCompass uses predictable local directories by default:
PathPurpose
data/Downloaded or prepared benchmark datasets. Existing datasets are reused as the local dataset cache.
results/Evaluation outputs under results/<benchmark>/<model>/<timestamp>/.
logs/ inside a run directoryRuntime logs for debugging a specific evaluation.
Override these locations when needed:
agentcompass run <benchmark> <harness> <model> --data-dir <data_dir> --results-dir <results_dir>

Troubleshooting

SymptomCheck
agentcompass: command not foundActivate the environment, reinstall with python -m pip install -e ., or use uv run agentcompass ....
Python version mismatchRun python --version and recreate the environment with Python >=3.10.
Dataset preparation failsConfirm wget, unzip, network access, and write permission for data/ or --data-dir.
Remote environment startup failsCheck provider credentials and environment-specific setup for Docker, Modal, Daytona, or HBox.
Model provider errors during a runConfigure model endpoint, key, protocol, and provider naming on the Setup page.

Run Without Editable Install

Editable install is preferred. If you intentionally avoid it, run through the module path:
PYTHONPATH=src python -m agentcompass.cli run \
  swebench_verified \
  mini_swe_agent \
  glm-5.2 \
  --env docker \
  --benchmark-params '{"sample_ids":["astropy__astropy-12907"]}' \
  --model-base-url "$MODEL_BASE_URL" \
  --model-api-key "$MODEL_API_KEY" \
  --model-api-protocol openai-chat