Skip to content

profiles.yaml

askx reads its configuration from ~/.config/askx/profiles.yaml (override with ASKX_HOME or --config). The file is written with mode 0600.

${VAR} values expand in order from process environment → $ASKX_HOME/.env → ~/.env. Common wfnexus aliases (kind, endpoint, permissionMode) are accepted alongside native keys.

default_profile: ollama
profiles:
ollama:
endpoint: http://127.0.0.1:11434/v1
style: openai
model: qwen3.5:4b
fallback: [claude-cli, devin-acp]
mcp_config: ~/mcp.json
skills_dirs: [~/skills]
log-triage:
endpoint: http://127.0.0.1:11434/v1
style: openai
model: qwen3.5:4b
category: ops
description: Triage build and test logs into root cause and fix
when_to_use: When a CI or test log exceeds 200 lines and needs quick root-cause extraction
tags: [logs, ci, cheap]
claude-cli:
style: cli
preset: claude # claude | devin | opencode | copilot | gemini, or custom command + args
model: haiku
mcp_config: ~/mcp.json # host-owned tools, MCP & skills still apply
skills_dirs: [~/skills]
devin-acp:
style: acp
preset: devin # warm JSON-RPC stdio session via ToolNexus LoadACP
mode: bypass
skills_dirs: [~/skills]
hosted:
endpoint: https://api.openai.com/v1
style: openai
model: gpt-4o-mini
key_env: OPENAI_API_KEY # env var NAME only; never store raw keys
max_tokens_budget: 50000
max_cost: 0.25
cost_per_1m_in: 0.15
cost_per_1m_out: 0.60
style What it talks to Notes
openai OpenAI, Ollama, vLLM, OpenRouter, LiteLLM, any OpenAI-compatible HTTP endpoint Default style
anthropic Anthropic Messages API Supports streaming, tools, multimodal
acp Agent Client Protocol (devin acp, opencode acp, or custom command) Warm JSON-RPC stdio session via ToolNexus LoadACP; host tools/MCP/skills stay on the host
cli claude, devin, opencode, copilot, gemini, or any custom command + args Subprocess adapter; supports host tools, MCP, skills, and --schema

Set fallback: [backup1, backup2] on any profile (or pass --fallback a,b on the CLI):

  • Retries the next profile on connection errors, timeouts, HTTP 429/5xx, or provider credit/quota failures.
  • Never fails over on policy denial (exit 6) — a refused tool call hard-stops immediately.
  • Validates cycles and missing profiles up front (exit 3).
  • Records fallback_attempts in JSON output and audit logs.

Set max_tokens_budget, max_cost, cost_per_1m_in, and cost_per_1m_out per profile, or override with --max-tokens-budget / --max-cost. Runs that exceed a budget stop cleanly with exit 4 while preserving partial turns and usage in the audit record.