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.
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
Storing Keys
Use islo login --agent to store API keys securely:
Keys are stored in ~/.islo/agent_keys.json and automatically injected into sandbox sessions.
Server-Side Integrations
For some agents, you can use server-side integrations instead of storing API keys locally:
With integrations, sandbox tasks use server-side API access. This is more secure and enables team-wide agent access without sharing API keys.
Key Precedence
When starting an agent session, keys are resolved in this order:
- Stored keys (from
islo login --agent) - highest priority - Environment variables (from your shell)
- islo.yaml env 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 tmux 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:
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
”API key not found”
Agent Not Starting
Check that the agent tool was installed:
If missing, the install phase may have failed. Check mise install output and retry.
Session Not Resuming
Session files are stored in /workspace/.islo/. If the sandbox was recreated, session state is lost. Use a consistent sandbox name to preserve sessions.