Skip to content

Commit 15342a0

Browse files
authored
Merge pull request #5 from Agent-Field/docs/railway-quick-start
docs: add Railway template to Quick Start
2 parents d0e6346 + dc01b60 commit 15342a0

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,25 @@ This is the core factory-control behavior: control agents supervise worker agent
138138

139139
## Quick Start
140140

141-
### 1. Requirements
141+
### Deploy with Railway (fastest)
142+
143+
[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/deploy/swe-af)
144+
145+
One click deploys SWE-AF + AgentField control plane + PostgreSQL. Set two environment variables in Railway:
146+
147+
- `CLAUDE_CODE_OAUTH_TOKEN` — run `claude setup-token` in [Claude Code CLI](https://docs.anthropic.com/en/docs/claude-code) (uses Pro/Max subscription credits)
148+
- `GH_TOKEN` — GitHub personal access token with `repo` scope for draft PR creation
149+
150+
Once deployed, trigger a build:
151+
152+
```bash
153+
curl -X POST https://<control-plane>.up.railway.app/api/v1/execute/async/swe-planner.build \
154+
-H "Content-Type: application/json" \
155+
-H "X-API-Key: this-is-a-secret" \
156+
-d '{"input": {"goal": "Add JWT auth", "repo_url": "https://github.com/user/my-repo"}}'
157+
```
158+
159+
### 1. Requirements (local)
142160

143161
- Python 3.12+
144162
- AgentField control plane (`af`)

0 commit comments

Comments
 (0)