Skip to main content
Typical loop on Gravix: clone → write CLAUDE.md → run Claude → inspect the diff → (optional) commit and push. Use sandbox.git for git and sandbox.run_cmd for claude. Complete Get started first. Your network policy must allow Anthropic and your git host.

Allow GitHub (if your policy is an allowlist)

Reuse CLAUDE_NETWORK_POLICY_ID from Get started, then add GitHub:
Or create a fresh allowlist that already includes both hosts (shown in the Python example below). Private remotes: set GIT_AUTH_TOKEN (or GRAVIXLAYER_GIT_TOKEN for the CLI). Pass it on every clone / fetch / pull / push — tokens are not stored in the checkout.

End-to-end: clone, edit, review

Uses the public octocat/Hello-World repo so you can run without org credentials. Override with GIT_CLONE_URL / GIT_BRANCH for your own repo.
Set GIT_ENABLE_PUSH=1 (and a token with write access) to exercise the push path in the Python example.

Next