An agent token from Agent Vault (create one under Agents → Add agent).
Install the Agent Vault CLI on the host or in the container image where OpenCode runs, and point it at your Agent Vault instance. The CLI bootstraps OpenCode’s environment so every outbound API call routes through Agent Vault for credential injection.
agent-vault run launches OpenCode with HTTPS_PROXY and HTTP_PROXY pre-set so both its HTTPS and plain HTTP calls route through Agent Vault for credential injection.
agent-vault run launches OpenCode with HTTPS_PROXY and HTTP_PROXY pre-set so both its HTTPS and plain HTTP calls route through Agent Vault for credential injection.
Inject the env vars when you run the container so the token never gets baked into the image. The CLI reads them on launch to authenticate with Agent Vault and scope its session to the right vault.
agent-vault run also installs an Agent Vault skill at ~/.opencode/skills/agent-vault-cli/SKILL.md that teaches OpenCode how to raise proposals when API access is needed. The skill persists across sessions.