# SWE-agent on ORB Cloud

SWE-agent reads `OPENAI_API_BASE_URL` env var. Zero config.

## orb.toml

```toml
[agent]
name = "swe-agent"
lang = "python"
entry = "run.py"

[agent.env]
HOME = "/root"
OPENAI_API_KEY = "${OPENAI_API_KEY}"

[source]
git = "https://github.com/princeton-nlp/SWE-agent"
branch = "main"

[build]
steps = [
  "pip install --break-system-packages -e .",
]

[llm]
base_url = "https://api.openai.com"

[resources]
runtime = "4GB"
disk = "8GB"
```

ORB sets `OPENAI_API_BASE_URL=http://127.0.0.1:8080`. SWE-agent reads it automatically.
