1Claw Server is the backend gateway for the 1Claw multi-agent platform. It manages multiple Hermes agent profiles simultaneously, routes WebSocket connections from mobile clients, and provides REST APIs for profile management.
Mobile Client (WS) <-> Go Gateway (this server) <-> Agent Profiles (Hermes)
cd 1claw-server
make build # uses goproxy.cn automatically
./1claw-server -config=config.yamlcd 1claw-server
go mod tidy
go run . -config=config.yamldocker build -t 1claw-server .
docker run -p 8080:8080 1claw-serverEdit config.yaml to set:
- Server host/port
- WebSocket settings
- Agent profiles (id, name, emoji, description, color)
| Method | Path | Description |
|---|---|---|
| GET | /health | Health check |
| GET | /api/status | Server + profile status |
| GET | /api/profiles | List all profiles |
| POST | /api/profiles | Create profile |
| PUT | /api/profiles/{id} | Update profile |
| DELETE | /api/profiles/{id} | Delete profile |
| WS | /ws | WebSocket connection |
See DESIGN.md for full protocol specification.
go test ./...Implement the AgentBridge interface in internal/agent/ and swap in main.go.