Skip to main content
Use this guide when your own Claude Agent SDK application should run inside Nullspace as a repeatable Agent Deployment. If you want the Claude Code CLI inside a machine workspace, use Claude Code instead. Claude Agent SDK apps usually fit mode = "job": receive input, run the agent, write output files, and exit. Use a service only when your app exposes an HTTP API around Claude.

Deploy As A Job

Deploy and run:
See the Claude Agent SDK job example for a complete project.

Debugging

Every run has a backing machine. Use --retain-on-failure when a failed Claude run should leave a retained machine for PTY, SSH, command, file, or desktop inspection.

State Boundary

Nullspace owns deployment runs, logs, outputs, and backing machines. Claude Agent SDK conversation state remains owned by your app. Keep session files in a volume or app-managed storage when they must survive machine cleanup, and pass your own conversation ID through the job input instead of treating a Nullspace run ID as a Claude session ID.