Config, Context, Output, and Troubleshooting
Last validated: 2026-05-11
This page explains how dodil vbase resolves config and why commands may target different endpoints.
Primary Config File
~/.config/dodil/config.yaml
Key Config Fields
| Path | Meaning |
|---|---|
global.token | Bearer token used by VBase gateway and tenant calls. |
global.org_id | Organization ID used in db/service APIs. |
global.org_name | Organization name forwarded by some client paths. |
vbase.gateway_host | Gateway endpoint used by db commands. |
vbase.host | Tenant endpoint host used by data-plane commands. |
vbase.port | Tenant port used by data-plane commands. |
vbase.db_name | Active DB name for data-plane commands. |
vbase.service_account_id | Credential used for token refresh. |
vbase.service_account_secret | Credential used for token refresh. |
Resolution Order
Current vbase plugin config behavior:
- Read global auth/org fields.
- Read
vbase.gateway_host,vbase.host,vbase.port,vbase.db_name. - Fallback to top-level
gateway_hostanddb_nameif needed. - Fallback gateway default is
https://api.dev.dodil.io.
What db use Changes
dodil vbase db use <service_id> writes:
vbase.hostvbase.portvbase.db_namevbase.service_name
This is why collection/data/index/status/version commands can run without passing endpoint flags.
Connection Behavior (TLS vs Insecure)
The client infers transport credentials from endpoint string:
https://...or:443-> TLShttp://...or non-443 no-scheme host -> insecure
Output Modes
Use output mode per command:
dodil vbase db list -o table
dodil vbase db list -o jsonjson mode is recommended for scripts.
Troubleshooting Playbook
Symptom: db command works but collection/data command fails
Checks:
- Run
dodil vbase db use <service_id>again. - Verify
vbase.host,vbase.port, andvbase.db_namein config. - Ensure target service is
RUNNING.
Symptom: unauthorized errors
Checks:
- Re-run
dodil login <id> <secret>. - Confirm
global.tokenexists in~/.config/dodil/config.yaml. - Retry command to trigger refresh path.
Symptom: search returns empty or wrong field output
Checks:
- Ensure
--vector-fieldmatches schema vector field. - Ensure
--id-fieldmatches schema ID field. - Confirm vector dimension matches collection schema.
Symptom: dodil vbase login appears successful but commands still fail
Cause:
- this legacy command writes
~/.vbase.yaml, not the primary Dodil CLI config used by plugin runtime.
Fix:
- use
dodil login <service_account_id> <service_account_secret>.