Skip to content

Latest commit

 

History

History
153 lines (112 loc) · 4.51 KB

configuration.md

File metadata and controls

153 lines (112 loc) · 4.51 KB

Configuration and contexts

The CLI stores accounts and environments as isolated named contexts. A context contains its API target, authenticated account, selected team, and OAuth session, which prevents a production command from silently reusing staging or custom-environment credentials.

Configuration file

The default file is:

~/.config/adios/config.yaml

The default directory is created with mode 0700 and the file with mode 0600. The file contains authentication material, including refresh and DPoP state. Do not commit it, share it, or paste it into an issue.

Use a different file for a single invocation with the global --config flag:

adios --config /path/to/config.yaml context current

Named contexts

Create contexts when logging in:

adios login --context personal --environment production
adios login --context work --environment production

List and switch between them:

adios context ls
adios context use work
adios context current

Select a context for only one command without changing the saved default:

adios --context personal apps

The ADIOS_CONTEXT environment variable provides the same one-command selection and is useful in scripts:

ADIOS_CONTEXT=work adios apps --json

Environments

Production is the normal target:

adios login --context production --environment production

A custom endpoint must be explicit:

adios login --context local --environment custom \
  --api-url https://api.adios.local.dev:8443

Remote custom endpoints must use HTTPS. Plain HTTP is accepted only for local development hosts such as localhost, 127.0.0.1, and .local.dev.

The global --api-url flag and ADIOS_API_URL override the selected context for the current invocation. Treat these as deliberate overrides: they are not persisted as incidental runtime flags.

Team selection

Login selects an available team. List memberships and change the team stored in the active context with:

adios teams list
adios teams switch <team-id>

ADIOS_TEAM_ID overrides the selected team for one process. Prefer an explicit context for routine interactive work and reserve environment overrides for automation.

An adios.yaml may contain a team_id written by a previous deployment. The CLI verifies that the active account can use that team. If it cannot, switch to the right context or team instead of copying an unrelated team ID into the manifest.

Environment variables

Variable Purpose
ADIOS_CONTEXT Select a named CLI context
ADIOS_API_URL Override the API base URL for the process
ADIOS_TEAM_ID Override the active team for the process
ADIOS_UP_TIMEOUT Set the deployment timeout, such as 20m
ADIOS_RABBITMQ_URL Select the RabbitMQ endpoint for local workflow commands
ADIOS_WORKFLOW_QUEUE Select the queue used by local workflow commands
OPENAI_API_KEY Use a local OpenAI credential with adios agent --provider openai
OPENAI_MODEL Set the local OpenAI model when --model is absent
GEMINI_API_KEY Use a local Gemini credential with adios agent --provider gemini
GEMINI_MODEL Set the local Gemini model when --model is absent
HTTP_MODEL_BASE_URL Base URL for adios agent --provider http
HTTP_MODEL_API_KEY Optional credential for the HTTP model endpoint
HTTP_MODEL Model name for the HTTP provider when --model is absent

Shell exports affect only the current shell and its children unless you add them to a shell profile:

export ADIOS_CONTEXT=work
export ADIOS_UP_TIMEOUT=20m

Never place provider keys or Adios tokens directly in a committed script.

Global flags

These flags are accepted by the root command and inherited by most subcommands:

Flag Purpose
--config <path> Use a non-default configuration file
--context <name> Select a context for this command
--api-url <url> Override the context API endpoint
--debug, -d Enable debug logging and display internal IDs where supported
--help, -h Show help for the current command

Automation

Commands that expose --json should be preferred in scripts. Check support on the exact command before relying on it:

adios apps --help
adios apps --json
adios context current --json
adios version --json

Pass explicit context and team inputs in CI. Avoid parsing the decorative human-readable output when a JSON form exists.

Back to the documentation index