Agent Integration
Islo provides first-class support for AI coding agents. Use --agent to automatically configure your sandbox for agents like Claude Code, Cursor, Codex, and more.
For runnable Python SDK examples (Claude Code, Codex, Claude Agent SDK), see Islo Recipes on GitHub.
Basic Usage
When you specify --agent, Islo:
- Installs the agent’s CLI tool in the sandbox
- Configures the correct environment variables
- Uses the agent’s entrypoint instead of a plain shell
- Sets up API key authentication
Supported Agents
API Key Management
Connecting Integrations
Use islo login --tool to connect an agent provider via OAuth. Once connected, sandbox sessions pick up the integration automatically — no local key file, no env var, no islo.yaml change.
The OAuth flow runs in your browser through Islo’s web app. Credentials are held server-side; the sandbox never sees the raw API key, and the team-wide connection means other members don’t need their own keys.
Key Precedence
When starting an agent session, credentials are resolved in this order:
- Connected integrations (from
islo login --tool) — server-side, transparent to the sandbox - Environment variables (from your shell)
islo.yamlenv:section
Passing Keys via Environment
You can also pass keys directly:
Or set them in islo.yaml:
Running Background Tasks
Use --task to run an agent with a prompt in the background:
This:
- Creates/connects to the sandbox
- Starts the agent in a persistent session
- Passes the task prompt to the agent
- Returns control to your terminal (agent runs in background)
Checking Task Progress
Reconnect to see agent progress:
If the agent supports session resume, it will continue the previous session.
Session Resume
Some agents support resuming previous sessions. When you reconnect with --agent, Islo checks for saved session state and resumes if available.
Claude Code
Claude Code sessions are automatically saved to /workspace/.islo/session.json. When you reconnect:
Islo detects the saved session and resumes it. To start fresh, recreate the sandbox under a different name or remove the existing one with islo rm <name> before running islo use again.
Port Forwarding
Some agents expose web interfaces. Islo automatically forwards their ports:
Access forwarded ports via the URL shown when connecting.
Examples
Daily Development with Claude
Overnight Refactoring Task
Multiple Agents
Troubleshooting
See Troubleshooting → Agents for --task requires an agent profile… and authentication failures.
Session Not Resuming
Session state lives inside the sandbox under /workspace/.islo/. If the sandbox was recreated, that state is gone. Use a consistent sandbox name across runs to preserve sessions.