scorpiox-sdk Core

The SDK provides a unified interface to run AI coding agents in sandboxed containers or locally, with full PTY support, multiple provider backends, and a built-in serve mode for remote sessions.

Platforms

linux-x64 linux-arm64 macos-arm64 windows-x64

Flags & Options

FlagShort DescriptionTakes Value
--agentAgent name (enables sandboxed agent mode)Yes
--branch-bGit branch to cloneYes
--cwdWorking directoryYes
--dry-runSimulate execution without making changesNo
--emit-session-eEmit session ID to stdoutNo
--help-hShow help messageNo
--host-portHost server port (default: auto)Yes
--image-iContainer image (default: scorpiox base image)Yes
--localRun agent locally on host (no container sandbox)No
--net-nUse host networking (no isolation)Yes
--patPersonal access token for private reposYes
--portMap host port H to container port C (repeatable, H+ for auto)No
--printPrint mode: forkpty → sx --headless, monitor + print (container)No
--promptInitial prompt to send to agentYes
--provider-pProvider: scorpiox, claude_code, gemini, openai, anthropicYes
--repo-rRepository URL to clone into the sessionYes
--serveStart scorpiox-host + sx with real PTYNo
--session-idResume or attach to an existing sessionYes
--sx-branchScorpiox build branch (default: from dist.scorpiox.net)Yes
--tuiLaunch with TUI interfaceYes
--version-vShow version informationNo
--volumeBind-mount a host path into the containerYes
-mModel name to use for the providerYes

Usage Examples

# Run an agent in a sandboxed container (default mode)
scorpiox-sdk --agent my-agent --repo https://github.com/user/project.git
# Run locally without container isolation
scorpiox-sdk --agent my-agent --local --cwd /home/user/project
# Start in serve mode with PTY for remote sessions
scorpiox-sdk --serve --host-port 8080
# Use a specific provider and model
scorpiox-sdk --agent builder -p anthropic -m claude-sonnet-4-20250514
# Clone a private repo with PAT and a specific branch
scorpiox-sdk --agent deploy-bot --repo https://git.example.com/org/app.git \
    --pat ghp_xxxxxxxxxxxx -b feature/deploy
# Map ports for a web dev agent (host 3000+ auto-assigns, container 3000)
scorpiox-sdk --agent web-dev --repo https://github.com/user/webapp.git \
    --port 3000+:3000 --port 5432:5432
# Print mode — headless run, output streamed to stdout
scorpiox-sdk --agent ci-bot --print --prompt "Run all tests and fix failures"
# Resume an existing session
scorpiox-sdk --session-id abc123-def456 --emit-session
# Dry-run to preview what would happen
scorpiox-sdk --agent my-agent --repo https://github.com/user/project.git --dry-run
# Use a custom container image with mounted volume
scorpiox-sdk --agent builder -i my-registry/custom-image:latest \
    --volume /data/models:/models

Source & Build Info

Source File
scorpiox/scorpiox-sdk.c
Lines of Code
1,936
Dependencies
libsxutil
Language
C

Related Tools