- A day-to-day coding sandbox (interactive
claudein a runtime shell) - A headless worker you drive from Python or the Gravix CLI (
-p, JSON, session resume) - A platform building block for repo work, parallel agents, and scheduled jobs
Why Gravix Layer for Claude Code?
Claude Code still talks to Anthropic’s API. Gravix Layer is the execution environment — not a replacement for Anthropic auth or model access.
Architecture
Template
Build (or use) a template fromagent-claude.Dockerfile. It extends the Gravix base image and installs Claude Code via Anthropic’s official installer.
Throughout these guides, set:
What you can do
Claude Code features → Gravix primitives
Anthropic continues to ship product features (dynamic workflows, agent view, routines, Dispatch / computer use). On Gravix Layer you map them like this:Prerequisites (all guides)
- Gravix Layer API key
- Anthropic API key (
ANTHROPIC_API_KEY) with Claude Code access - Python 3.10+ with
pip install gravixlayer, or the Gravix CLI - A built Claude template (
GRAVIXLAYER_CLAUDE_TEMPLATE)
Safety model
--dangerously-skip-permissions auto-approves tool calls inside the sandbox. That is intentional for headless agents. It does not protect outbound network — Claude can still call any host you allow. Keep egress on an allowlist when the agent handles untrusted input or secrets.