Skip to main content
Requires Node.js 18+. Running 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:
Credentials are stored in ~/.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.
Keys are workspace-scoped. Use named profiles to switch between workspaces:

Tasks

In the TUI, use /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:
By default the session attaches to a matching project in ~/.claude/projects/; use --project <path> to pick one explicitly.

Sandbox access

Forks are recorded in ~/.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 _.