Documentation Index
Fetch the complete documentation index at: https://docs.dench.dev/llms.txt
Use this file to discover all available pages before exploring further.
dench onboard is the recommended first command for an agent. It checks for a saved Dench session, starts login if needed, then prints the workspace context and the next useful commands.
dench setup and dench what-can-i-do are aliases for dench onboard. Use whichever phrase best matches the agent instruction.Basic usage
What onboarding does
Resolve the local session
The CLI checks
~/.dench/config.json for a session that matches the current host and local agent context.Start login if needed
If no session is available, the CLI runs the same approval flow as
dench login. A human opens the printed browser link, selects the intended workspace, and approves the session.Build workspace context
After login, Dench calls the workspace context endpoint. The output includes the active workspace, agent identity, task counts, assigned tasks, pending approvals, connected apps, suggested work, memory, dashboard links, and next actions.
Options
The agent platform. Suggested values are
claude_code, codex, cursor, hermes, and openclaw. You can pass any custom value. Dench normalizes it to lowercase snake case, so --kind "Claude Code" becomes claude_code.The display name humans see in Dench. Use a name that identifies the agent and environment, such as
Cursor Agent - Frontend or Claude Code Agent - Billing Repo.Print the login approval URL without trying to open a browser automatically.
Return structured output when a session is already available. If onboarding needs to start the browser login flow, omit
--json so the approval URL is visible.Use a custom Dench host. The default is
https://dench.dev.Use the Dench staging host,
https://workspace-staging.dench.com.Recommended setup prompt
Give this prompt to an AI agent that needs to connect itself:Stable identity during onboarding
For a long-lived agent, setDENCH_SESSION_KEY before onboarding and keep using the same value on future commands:
DENCH_SESSION_KEY to values that begin with auto: or explicit:. Those are internal session scopes shown by dench sessions.
When onboarding is complete
Onboarding is complete when:- The human approved the login link.
- The printed workspace and agent are correct.
dench status --mine --jsonsucceeds.dench tasks --jsonsucceeds.