DVL Agent Guide
import { Steps, Aside } from ‘@astrojs/starlight/components’
The dvl agent subcommand is the lifecycle manager for the agentic flavour. It handles stack layering, container execution, and tool authentication.
Lifecycle Overview
To use an AI agent in Devilbox, you follow this standard progression:
dvl agent enable agentic # 1. Enable the stackdvl agent up # 2. Start the containerdvl agent auth claude-code # 3. Authenticate (one-time)dvl agent shell # 4. Enter the workspaceSubcommands
enable / disable
Adds or removes override stacks from .dvl/agent-stacks.list. Enabling a stack layers its docker-compose.override.yml-<name> file on top of the base configuration via the COMPOSE_FILE environment variable.
dvl agent enable agenticdvl agent disable agenticlist
Displays all available agent stacks (found in compose/docker-compose.override.yml-*) and indicates which ones are currently enabled in your environment.
dvl agent listup / down / restart
Manages the running state of your layered agent stacks. up will automatically prune orphan containers if a stack was recently disabled.
dvl agent updvl agent downdvl agent restartstatus (alias: ps)
Shows the status of containers belonging to the enabled agent stacks.
logs
Tails the logs for agent services.
dvl agent logsshell [service]
Opens a bash session inside an agent container as the devilbox user. Defaults to the agentic service if no name is provided.
dvl agent shelldvl agent shell opencodeexec
Runs a non-interactive command inside the agentic container.
dvl agent exec "claude --version"auth
Triggers the OAuth bridge for a specific tool. This uses a host-side script to handle browser interaction.
dvl agent auth claude-codedvl agent auth copilottools
Lists all AI CLI tools currently installed and available in the agentic image.
OAuth Walkthrough
Volume Persistence
The following directories in the agentic container are mounted from your host to ensure long-term persistence:
| Container Path | Host Source | Survives -v? |
|---|---|---|
/home/devilbox/.claude | cfg/agentic/claude | Yes |
/home/devilbox/.config/opencode | cfg/agentic/opencode | Yes |
/shared/httpd | HOST_PATH_HTTPD_DATADIR | Yes |
Multi-Tool Workflows
Because all agents share the same /shared/httpd workspace, you can use multiple tools in parallel. For example, you might use Claude Code to author a feature while OpenCode runs background tests or documentation indexing.
# In one terminaldvl agent shellclaude "Implement the user profile API"
# In another terminaldvl agent shellopencode "Monitor test coverage for the new API"See also: Agentic Onboarding, DVL CLI Reference