Summary
Cloud-based coding environments (e.g., Claude Code cloud, OpenClaw) run in ephemeral Linux containers where ox isn't installed. Currently, startup hooks fail with ox: command not found. This issue tracks the full cloud experience beyond the initial read-only team context work.
Context
Initial work (in progress on ryan/ox-session-start):
SAGEOX_TOKEN env var for non-interactive auth
- HTTP-based team context fetch during
ox agent prime (no git/daemon required)
- New API endpoint:
GET /api/v1/teams/{team_id}/context
Remaining Work
Phase 1: Backend API
Phase 2: Session Recording
Phase 3: Container Bootstrap
Phase 4: Broader Agent Support
Key Constraints
- Containers are extremely minimal (may lack
head, git, curl)
- ox builds static binaries (
CGO_ENABLED=0) — no dynamic dependencies
- Auth must work non-interactively (env var token, no browser)
- Team context needs to be served over HTTP (no git clone)
- Daemon is not available in ephemeral containers
Design Principle
Keep the "secret sauce" in cloud APIs — the container just needs the ox binary and a token.
Summary
Cloud-based coding environments (e.g., Claude Code cloud, OpenClaw) run in ephemeral Linux containers where ox isn't installed. Currently, startup hooks fail with
ox: command not found. This issue tracks the full cloud experience beyond the initial read-only team context work.Context
Initial work (in progress on
ryan/ox-session-start):SAGEOX_TOKENenv var for non-interactive authox agent prime(no git/daemon required)GET /api/v1/teams/{team_id}/contextRemaining Work
Phase 1: Backend API
GET /api/v1/teams/{team_id}/contextendpoint (serves team docs, AGENTS.md, CLAUDE.md, MEMORY.md as JSON)Phase 2: Session Recording
ox session start/stopvia HTTP API upload)Phase 3: Container Bootstrap
ox cloud bootstrapcommand or--cloudflag onox agent primePhase 4: Broader Agent Support
Key Constraints
head,git,curl)CGO_ENABLED=0) — no dynamic dependenciesDesign Principle
Keep the "secret sauce" in cloud APIs — the container just needs the ox binary and a token.