twill with no arguments opens an interactive TUI; every capability is also available as a plain command for scripting.
Authentication
Create an API key in workspace Settings → API Keys, then:~/.twill/credentials.json. For CI or scripts, set the TWILL_API_KEY environment variable instead. Use TWILL_BASE_URL to target a self-hosted instance.
Multiple workspaces (profiles)
Multiple workspaces (profiles)
Keys are workspace-scoped. Use named profiles to switch between workspaces:
Tasks
/tasks, /resume <slug>, /agent, /forks, and /exit.
Automations
Teleport
Pull a task’s full context down to your machine and continue it in your local agent:~/.claude/projects/; use --project <path> to pick one explicitly.
Sandbox access
~/.twill/forks.json. Lifecycle: idle forks stop after 30 minutes, archive after 24 hours, and are deleted 7 days after last use. Fork names allow letters, digits, -, and _.