Über uns
Eine schlanke CLI zum Ausführen von KI-Agenten für einzelne Aufgaben. Definiere fokussierte Agenten in TOML und starte sie von überall – über Pipes, Git-Hooks, cron oder das Terminal.
KI und maschinelles LernenWhat you can do
- Multi-provider support — Anthropic, OpenAI, Ollama (local models), OpenCode, and AWS Bedrock
- TOML-based agent configuration — declarative, version-controllable agent definitions
- Sub-agent delegation — agents can call other agents via LLM tool use, with depth limiting and parallel execution
- Persistent memory — timestamped markdown logs that carry context across runs
Gemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- +5
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalAxe

A CLI tool for managing and running LLM-powered agents.
Why Axe?
Most AI tooling assumes you want a chatbot. A long-running session with a massive context window doing everything at once. But that's not how good software works. Good software is small, focused, and composable.
Axe treats LLM agents the same way Unix treats programs. Each agent does one thing well. You define it in a TOML file, give it a focused skill, and run it from the command line. Pipe data in, get results out. Chain agents together. Trigger them from cron, git hooks, or CI. Whatever you already use. No daemon, no GUI, no framework to buy into. Just a binary and your configs.
Overview
Axe orchestrates LLM-powered agents defined via TOML configuration files. Each agent has its own system prompt, model selection, skill files, context files, working directory, persistent memory, and the ability to delegate to sub-agents.
Axe is the executor, not the scheduler. It is designed to be composed with standard Unix tools — cron, git hooks, pipes, file watchers — rather than reinventing scheduling or workflow orchestration.
The compatibility promise for v1 releases is in COMPATIBILITY.md.
Features
- Multi-provider support — Anthropic, OpenAI, Ollama (local models), OpenCode, and AWS Bedrock
- TOML-based agent configuration — declarative, version-controllable agent definitions
- Sub-agent delegation — agents can call other agents via LLM tool use, with depth limiting and parallel execution
- Persistent memory — timestamped markdown logs that carry context across runs
- Memory garbage collection — LLM-assisted pattern analysis and trimming
- Skill system — reusable instruction sets that can be shared across agents
- Stdin piping — pipe any output directly into an agent (
git diff | axe run reviewer) - Local agent directories — auto-discovers agents from
<cwd>/axe/agents/before the global config, or use--agents-dirto point anywhere - Dry-run mode — inspect resolved context without calling the LLM
- JSON output — structured output with metadata for scripting
- Built-in tools — file operations (read, write, edit, list) sandboxed to working directory; shell command execution; URL fetching; web search
- Output allowlist — restrict
url_fetchandweb_searchto specific hostnames; private/reserved IPs are always blocked (SSRF protection) - Token budgets — cap cumulative token usage per agent run via
[budget]config or--max-tokensflag - MCP tool support — connect to external MCP servers for additional tools via SSE or streamable-HTTP transport
- Configurable retry — exponential, linear, or fixed backoff for transient provider errors (429, 5xx, timeouts)
- Minimal dependencies — four direct dependencies (cobra, toml, mcp-go-sdk, x/net); all LLM calls use the standard library
Installation
Source builds and pkg/runner imports require Go 1.26.11 or later.
Pre-built binaries (no Go required) are available for Linux, macOS, and Windows on the GitHub Releases page.
Install via Go:
go install github.com/jrswab/axe@latest
For a checkout, Go's default automatic toolchain selection may use an available
go1.26.11onPATHor download it if the installed toolchain is older. A blocked or unverifiable download can fail even with cached dependencies.GOTOOLCHAIN=localdisables switching and requires an installed Go version at least 1.26.11. Versionedgo installuses the target module's minimum but not its toolchain suggestion. If installation fails, check the Go version and toolchain availability, upgrade from go.dev/dl, or use a pre-built binary.
Or build from source:
git clone https://github.com/jrswab/axe.git
cd axe
go build .
Quick Start
Initialize the configuration directory:
axe config init
This creates the directory structure at $XDG_CONFIG_HOME/axe/ with a sample skill and a default config.toml for provider credentials.
Scaffold a new agent:
axe agents init my-agent
Edit its configuration:
axe agents edit my-agent
Run the agent:
axe run my-agent
Pipe input from other tools:
git diff --cached | axe run pr-reviewer
cat error.log | axe run log-analyzer
Examples
The examples/ directory contains ready-to-run agents you can copy into your config and use immediately. Includes a code reviewer, commit message generator, and text summarizer — each with a focused SKILL.md.
# Copy an example agent into your config
cp examples/code-reviewer/code-reviewer.toml "$(axe config path)/agents/"
cp -r examples/code-reviewer/skills/ "$(axe config path)/skills/"
# Set your API key and run
export ANTHROPIC_API_KEY="your-key-here"
git diff | axe run code-reviewer
See examples/README.md for full setup instructions.
Docker
Axe provides a Docker image for running agents in an isolated, hardened container.
Build the Image
docker build -t axe .
Multi-architecture builds (linux/amd64, linux/arm64) are supported via buildx:
docker buildx build --platform linux/amd64,linux/arm64 -t axe:latest .
Run an Agent
Mount your config directory and pass API keys as environment variables:
docker run --rm \
-v ./my-config:/home/axe/.config/axe \
-e ANTHROPIC_API_KEY \
axe run my-agent
Pipe stdin with the -i flag:
git diff | docker run --rm -i \
-v ./my-config:/home/axe/.config/axe \
-e ANTHROPIC_API_KEY \
axe run pr-reviewer
Without a config volume mounted, axe exits with code 2 (config error) because no agent TOML files exist.
Running a Single Agent
The examples above mount the entire config directory. If you only need to run one agent with one skill, mount just those files to their expected XDG paths inside the container. No config.toml is needed when API keys are passed via environment variables.
docker run --rm -i \
-e ANTHROPIC_API_KEY \
-v ./agents/reviewer.toml:/home/axe/.config/axe/agents/reviewer.toml:ro \
-v ./skills/code-review/:/home/axe/.config/axe/skills/code-review/:ro \
axe run reviewer
The agent's skill field resolves automatically against the XDG config path inside the container, so no --skill flag is needed.
To use a different skill than the one declared in the agent's TOML, use the --skill flag to override it. In this case you only mount the replacement skill — the original skill declared in the TOML is ignored entirely:
docker run --rm -i \
-e ANTHROPIC_API_KEY \
-v ./agents/reviewer.toml:/home/axe/.config/axe/agents/reviewer.toml:ro \
-v ./alt-review.md:/home/axe/alt-review.md:ro \
axe run reviewer --skill /home/axe/alt-review.md
If the agent declares sub_agents, all referenced agent TOMLs and their skills must also be mounted.
Persistent Data
Agent memory persists across runs when you mount a data volume:
docker run --rm \
-v ./my-config:/home/axe/.config/axe \
-v axe-data:/home/axe/.local/share/axe \
-e ANTHROPIC_API_KEY \
axe run my-agent
Docker Compose
A docker-compose.yml is included for running axe alongside a local Ollama instance.
Cloud provider only (no Ollama):
docker compose run --rm axe run my-agent
With Ollama sidecar:
docker compose --profile ollama up -d ollama
docker compose --profile cli run --rm axe run my-agent
Pull an Ollama model:
docker compose --profile ollama exec ollama ollama pull llama3
Note: The compose
axeservice declaresdepends_on: ollama. Docker Compose will attempt to start the Ollama service whenever axe is started via compose, even for cloud-only runs. For cloud-only usage without Ollama, usedocker rundirectly instead ofdocker compose run.
Ollama on the Host
If Ollama runs directly on the host (not via compose), point to it with:
- Linux:
--add-host=host.docker.internal:host-gateway -e AXE_OLLAMA_BASE_URL=http://host.docker.internal:11434 - macOS / Windows (Docker Desktop):
-e AXE_OLLAMA_BASE_URL=http://host.docker.internal:11434
Security
The container runs with the following hardening by default (via compose):
- Non-root user — UID 10001
- Read-only root filesystem — writable locations are the config mount, data mount, and
/tmp/axetmpfs - All capabilities dropped —
cap_drop: ALL - No privilege escalation —
no-new-privileges:true
These settings do not restrict outbound network access. To isolate an agent that only talks to a local Ollama instance, add --network=none and connect it to the shared Docker network manually.
Volume Mounts
| Container Path | Purpose | Default Access |
|---|---|---|
/home/axe/.config/axe/ |
Agent TOML files, skills, config.toml |
Read-write |
/home/axe/.local/share/axe/ |
Persistent memory files | Read-write |
Config is read-write because axe config init and axe agents init write into it. Mount as :ro if you only run agents.
Environment Variables
| Variable | Required | Purpose |
|---|---|---|
ANTHROPIC_API_KEY |
If using Anthropic | API authentication |
OPENAI_API_KEY |
If using OpenAI | API authentication |
AXE_OLLAMA_BASE_URL |
If using Ollama | Ollama endpoint (default in compose: http://ollama:11434) |
AXE_ANTHROPIC_BASE_URL |
No | Override Anthropic API endpoint |
AXE_OPENAI_BASE_URL |
No | Override OpenAI API endpoint |
AXE_OPENCODE_BASE_URL |
No | Override OpenCode API endpoint |
TAVILY_API_KEY |
If using web_search | Tavily web search API key |
AXE_WEB_SEARCH_BASE_URL |
No | Override web search endpoint |
CLI Reference
Commands
| Command | Description |
|---|---|
axe run <agent> |
Run an agent |
axe agents list |
List all configured agents |
axe agents show <agent> |
Display an agent's full configuration |
axe agents init <agent> |
Scaffold a new agent TOML file |
axe agents edit <agent> |
Open an agent TOML in $EDITOR |
axe config path |
Print the configuration directory path |
axe config init |
Initialize the config directory with defaults |
axe gc <agent> |
Run memory garbage collection for an agent |
axe gc --all |
Run GC on all memory-enabled agents |
axe version |
Print the current version |
Run Flags
| Flag | Default | Description |
|---|---|---|
--model <provider/model> |
from TOML | Override the model (e.g. anthropic/claude-sonnet-4-20250514) |
--skill <path> |
from TOML | Override the skill file path |
--workdir <path> |
from TOML or cwd | Override the working directory |
--timeout <seconds> |
120 | Request timeout |
--max-tokens <int> |
0 (unlimited) | Cap cumulative token usage for the run (exit code 4 if exceeded) |
--dry-run |
false | Show resolved context without calling the LLM |
--verbose / -v |
false | Print debug info (model, timing, tokens, provider-reported cache counts, retries) to stderr; without a budget only nonzero cache counts are shown |
--json |
false | Wrap output in a JSON envelope with metadata |
-p / --prompt <string> |
(none) | Inline prompt used as the user message; takes precedence over stdin |
--agents-dir <path> |
(auto-discover) | Override agent search directory |
User Message Precedence
The user message sent to the LLM is resolved in this order:
-p/--promptflag — If provided with a non-empty, non-whitespace value, it is used as the user message.- Piped stdin — If
-pis absent or empty/whitespace-only, piped stdin is used. - Built-in default — If neither
-pnor stdin provides content, the default message"Execute the task described in your instructions."is used.
When -p is provided alongside piped stdin, the piped stdin is silently ignored (no warning is emitted). An empty or whitespace-only -p value is treated as absent and falls through to stdin, then the default.
Example:
axe run my-agent -p "Summarize the README"
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Runtime error |
| 2 | Configuration error |
| 3 | Provider/network error |
| 4 | Token budget exceeded |
Agent Configuration
Agents are defined as TOML files in $XDG_CONFIG_HOME/axe/agents/.
name = "pr-reviewer"
description = "Reviews pull requests for issues and improvements"
model = "anthropic/claude-sonnet-4-20250514"
system_prompt = "You are a senior code reviewer. Be concise and actionable."
skill = "skills/code-review/SKILL.md"
files = ["src/**/*.go", "CONTRIBUTING.md"]
workdir = "/home/user/projects/myapp"
max_turns = 75 # optional; defaults to 50 when unset
tools = ["read_file", "list_directory", "run_command"]
sub_agents = ["test-runner", "lint-checker"]
allowed_hosts = ["api.example.com", "docs.example.com"]
[sub_agents_config]
max_depth = 3 # maximum nesting depth (hard max: 5)
parallel = true # run sub-agents concurrently
timeout = 120 # per sub-agent timeout in seconds
[memory]
enabled = true
last_n = 10 # load last N entries into context
max_entries = 100 # warn when exceeded
[[mcp_servers]]
name = "my-tools"
url = "https://my-mcp-server.example.com/sse"
transport = "sse"
headers = { Authorization = "Bearer ${MY_TOKEN}" }
[params]
temperature = 0.3
reasoning_effort = "low" # optional; OpenAI-compatible providers only (see below)
max_tokens = 4096
# response_format = "json_object" # text, json_object, or json_schema
[budget]
max_tokens = 50000 # 0 = unlimited (default)
[retry]
max_retries = 3 # retry up to 3 times on transient errors
backoff = "exponential" # "exponential", "linear", or "fixed"
initial_delay_ms = 500 # base delay before first retry
max_delay_ms = 30000 # maximum delay cap
[[mcp_servers]]
name = "filesystem"
transport = "stdio"
command = "/usr/local/bin/mcp-server-filesystem"
args = ["--root", "/home/user/projects"]
All fields except name and model are optional.
Parameters
reasoning_effort is an optional string. Axe passes it through unchanged without value validation. Empty or omitted values mean the key is not sent. Only OpenAI, Atlas Cloud, Cheaper Inference, Eden AI, LiteLLM, Runcrate, and Standard Compute send it as top-level reasoning_effort. Anthropic, MiniMax, Ollama, OpenCode, Gemini, Bedrock, and OpenRouter ignore it. Supported values depend on the model, for example low, none, high, or max.
OpenAI, Atlas Cloud, Cheaper Inference, Eden AI, LiteLLM, Runcrate, and Standard Compute send temperature when TOML explicitly sets it, including "temperature": 0. When TOML omits temperature, these providers omit the key. Other providers still omit zero temperatures.
params.cache_enabled defaults to true when omitted; set it to true or false explicitly to choose whether Axe uses applicable cache hints. Each run uses its own agent definition, so a sub-agent does not inherit its parent's choice. OpenAI Chat caching is provider-managed and automatic; setting this to false does not disable it.
For Anthropic Messages, an enabled hint marks the system prompt and preceding ordered tools as the static prefix. If the system is empty, it marks the last tool instead; if both are empty, Axe adds no breakpoint. Conversation messages, including tasks and sub-agent context, remain outside that breakpoint. Eligibility depends on provider and model constraints and cache availability; a hint does not guarantee a hit or savings.
For Bedrock Converse, enabled hints add separate default checkpoints after the system text and after the ordered tool specifications when each is present; empty static inputs add no checkpoint. Tool schema required names have stable ordering, and changing conversation messages remain outside these static prefixes. AWS model, API, region and routing determine support, checkpoint limits, minimum prefix sizes and TTL; shorter prefixes may not be cached. Cache reads and writes are provider-reported counts, not proof of hits or savings. See the AWS prompt caching guide for current eligibility.
Cache counts are provider reports for this Agent Run only. With --verbose and no token budget, a Cache: line shows only the nonzero counts, for example Cache: 120 read, 40 written or Cache: 120 read; with a budget it always shows both counts, including zeros. --json reports the same cumulative counts as cache_read_tokens and cache_write_tokens, omitted when zero. A Nested Run's counts stay inside that Nested Run and do not reach the parent. Axe reports Anthropic and Bedrock cache reads and writes, and only OpenAI Chat cache reads. Counts are not proof of hits or savings.
Optional cache probe
To observe caching yourself, run the same agent twice with an identical system prompt and tools and a different task, using --verbose or --json, and compare the counts. Each run makes paid provider calls with your own credentials. Results are point-in-time and depend on model, region and provider limits; a zero count does not prove caching is disabled or unsupported. Do not include API keys or other secrets when you record results.
Retry
Agents can retry on transient LLM provider errors — rate limits (429), server errors (5xx), and timeouts. Retry is opt-in and disabled by default.
| Field | Default | Description |
|---|---|---|
max_retries |
0 | Number of retry attempts after the initial request. 0 disables retry. |
backoff |
"exponential" |
Strategy: "exponential" (with jitter), "linear", or "fixed" |
initial_delay_ms |
500 | Base delay in milliseconds before the first retry |
max_delay_ms |
30000 | Maximum delay cap in milliseconds |
Only transient errors are retried. Authentication errors (401/403) and bad
requests (400) are never retried. When --verbose is enabled, each retry
attempt is logged to stderr. The --json envelope includes a retry_attempts
field for observability.
Output Allowlist
Agents that use url_fetch or web_search can be restricted to specific hostnames with the allowed_hosts field:
allowed_hosts = ["api.example.com", "docs.example.com"]
| Behavior | Detail |
|---|---|
| Empty or absent | All public hostnames allowed |
| Non-empty list | Only exact hostname matches permitted (case-insensitive, no wildcard subdomains) |
| Private IPs | Always blocked regardless of allowlist — loopback, link-local, RFC 1918, CGNAT, IPv6 private |
| Redirects | Each redirect destination is re-validated against the allowlist and private IP check |
| Sub-agents | Inherit the parent's allowed_hosts unless the sub-agent TOML explicitly sets its own |
Token Budget
Cap cumulative token usage (input + output, across all turns and sub-agent calls) for a single run:
[budget]
max_tokens = 50000 # 0 = unlimited (default)
Or override via flag:
axe run my-agent --max-tokens 10000
The flag takes precedence over TOML when set to a value greater than zero.
When the budget is exceeded, the current response is returned but no further tool calls execute. The process exits with code 4. Memory is not appended on a budget-exceeded run.
With --verbose, each turn logs cumulative usage to stderr. With --json, the output envelope includes budget_max_tokens, budget_used_tokens, and budget_exceeded fields (omitted when unlimited).
Response Format
Constrain LLM output to a specific format via the [params] section. Forwarded by OpenAI, Atlas Cloud, Cheaper Inference, Eden AI, LiteLLM, Ollama, OpenRouter, Runcrate, and Standard Compute providers; other providers ignore this setting. For gateways, support depends on the selected model and backend.
# String shorthand
[params]
response_format = "json_object"
# Table form (required for json_schema)
[params.response_format]
type = "json_schema"
[params.response_format.schema]
name = "my_schema"
type = "object"
| Type | Description |
|---|---|
text |
Default free-form text output |
json_object |
Valid JSON object (provider-enforced at decoding time) |
json_schema |
JSON matching the provided schema; requires [params.response_format.schema] |
Tools
Agents can use built-in tools to interact with the filesystem and run commands. When tools are enabled, the agent enters a conversation loop — the LLM can make tool calls, receive results, and continue reasoning for up to max_turns turns (default: 50).
Built-in Tools
| Tool | Description |
|---|---|
list_directory |
List contents of a directory relative to the working directory |
read_file |
Read file contents with line-numbered output and optional pagination (offset/limit) |
write_file |
Create or overwrite a file, creating parent directories as needed |
edit_file |
Find and replace exact text in a file, with optional replace-all mode |
run_command |
Execute a shell command via sh -c and return combined output |
url_fetch |
Fetch URL content with HTML stripping and truncation |
web_search |
Search the web and return results |
call_agent |
Delegate a task to a sub-agent (controlled via sub_agents, not tools) |
Enable tools by adding them to the agent's tools field:
tools = ["read_file", "list_directory", "run_command"]
The call_agent tool is not listed in tools — it is automatically available when sub_agents is configured and the depth limit has not been reached.
Path Security
All file tools (list_directory, read_file, write_file, edit_file) are sandboxed to the agent's working directory. Absolute paths, .. traversal, and symlink escapes are rejected.
Parallel Execution
When an LLM returns multiple tool calls in a single turn, they run concurrently by default. This applies to both built-in tools and sub-agent calls. Disable with parallel = false in [sub_agents_config].
MCP Tools
Agents can use tools from external MCP
servers. Declare servers in the agent TOML with [[mcp_servers]]:
[[mcp_servers]]
name = "my-tools"
url = "https://my-mcp-server.example.com/sse"
transport = "sse"
headers = { Authorization = "Bearer ${MY_TOKEN}" }
At startup, axe connects to each declared server, discovers available tools via
tools/list, and makes them available to the LLM alongside built-in tools.
| Field | Required | Description |
|---|---|---|
name |
Yes | Human-readable identifier for the server |
url |
Yes | MCP server endpoint URL |
transport |
Yes | "sse" or "streamable-http" |
headers |
No | HTTP headers; values support ${ENV_VAR} interpolation |
MCP tools are controlled entirely by [[mcp_servers]] — they are not listed in
the tools field. If an MCP tool has the same name as an enabled built-in tool,
the built-in takes precedence.
Skills
Skills are reusable instruction sets that provide an agent with domain-specific knowledge and workflows. They are defined as SKILL.md files following the community SKILL.md format.
Skill Resolution
The skill field in an agent TOML is resolved in order:
- Absolute path — used as-is (e.g.
/home/user/skills/SKILL.md) - Relative to config dir — e.g.
skills/code-review/SKILL.mdresolves to$XDG_CONFIG_HOME/axe/skills/code-review/SKILL.md - Bare name — e.g.
code-reviewresolves to$XDG_CONFIG_HOME/axe/skills/code-review/SKILL.md
Script Paths
Skills often reference helper scripts. Since run_command executes in the agent's workdir (not the skill directory), script paths in SKILL.md must be absolute. Relative paths will fail because the scripts don't exist in the agent's working directory.
# Correct — absolute path
/home/user/.config/axe/skills/my-skill/scripts/fetch.sh <args>
# Wrong — relative path won't resolve from the agent's workdir
scripts/fetch.sh <args>
Directory Structure
$XDG_CONFIG_HOME/axe/
├── config.toml
├── agents/
│ └── my-agent.toml
└── skills/
└── my-skill/
├── SKILL.md
└── scripts/
└── fetch.sh
Local Agent Directories
By default, agents are loaded from $XDG_CONFIG_HOME/axe/agents/. Axe also supports project-local agent directories for per-repo agent definitions.
Auto-Discovery
If <cwd>/axe/agents/ exists, axe searches it before the global config directory. A local agent with the same name as a global agent shadows the global one.
my-project/
└── axe/
└── agents/
└── my-agent.toml ← found automatically
Explicit Override
Use --agents-dir to point to any directory:
axe run my-agent --agents-dir ./custom/agents
This flag is available on all commands: run, agents list, agents show, agents init, agents edit, and gc.
Resolution Order
--agents-dir(if provided)<cwd>/axe/agents/(auto-discovered)$XDG_CONFIG_HOME/axe/agents/(global fallback)
The first directory containing a matching <name>.toml wins.
Smart Scaffolding
axe agents init <name> writes to <cwd>/axe/agents/ if that directory already exists, otherwise falls back to the global config directory.
Providers
| Provider | API Key Env Var | Default Base URL |
|---|---|---|
| Anthropic | ANTHROPIC_API_KEY |
https://api.anthropic.com |
| Atlas Cloud | ATLASCLOUD_API_KEY |
https://api.atlascloud.ai/v1 |
| Cheaper Inference | CHEAPER_INFERENCE_API_KEY |
https://api.cheaperinference.com/v1 |
| Eden AI | EDENAI_API_KEY |
https://api.edenai.run/v3 |
| LiteLLM (proxy) | LITELLM_API_KEY |
http://localhost:4000/v1 |
| OpenAI | OPENAI_API_KEY |
https://api.openai.com |
| Ollama | (none required) | http://localhost:11434 |
| OpenCode | OPENCODE_API_KEY |
Configurable |
| Runcrate | RUNCRATE_API_KEY |
https://api.runcrate.ai/v1 |
| Standard Compute | STANDARDCOMPUTE_API_KEY |
https://api.stdcmpt.com/v1 |
| AWS Bedrock | (uses AWS credentials) | Region-based |
AWS Bedrock Configuration:
Main and Nested Runs use the same AWS setup; neither uses an ordinary API key or base URL override.
- Region:
AWS_REGION→AWS_DEFAULT_REGION→AXE_BEDROCK_REGION→[providers.bedrock] regioninconfig.toml. A region is required and must be a single lowercase DNS label (1–63 lowercase ASCII letters, digits or hyphens, without a leading or trailing hyphen). - Credentials: A complete
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYenvironment pair takes precedence, with optionalAWS_SESSION_TOKEN. Otherwise, Axe readsAWS_SHARED_CREDENTIALS_FILEor~/.aws/credentials, selectingAWS_PROFILEordefault; the profile must contain both keys. This is not the full AWS SDK credential chain. Nested setup failures provide guidance without revealing local credential-file paths to the parent. - Model IDs: Use full Bedrock model IDs (e.g.,
bedrock/anthropic.claude-3-5-sonnet-20241022-v2:0).
For providers other than Bedrock, base URLs can be overridden with AXE_<PROVIDER>_BASE_URL environment variables or in config.toml.
For Atlas Cloud, use model names such as atlascloud/qwen/qwen3.8-max in agent TOML.
For Cheaper Inference, use model names such as cheaperinference/gpt-5.4-mini in agent TOML.
For Eden AI, model ids carry the upstream vendor as a prefix, such as edenai/openai/gpt-4o-mini or edenai/anthropic/claude-haiku-4-5. Custom Eden AI base URLs require HTTPS, except for localhost and loopback/private IP literals (for local proxies).
For Runcrate, use model names such as runcrate/deepseek-ai/DeepSeek-V4.1-Flash in agent TOML.
Standard Compute uses the OpenAI-compatible Chat Completions API. Set an agent model to standardcompute/StandardCompute to route each request to the cheapest enabled model that can handle it, with automatic fallback, or pin a model with any id from GET https://api.stdcmpt.com/v1/models (for example standardcompute/<model-id>). See https://standardcompute.com.
For a LiteLLM proxy, set LITELLM_API_KEY (or [providers.litellm] api_key) and optionally AXE_LITELLM_BASE_URL (or [providers.litellm] base_url). The default URL is http://localhost:4000/v1; URLs without /v1 work too. Use the proxy's model names, e.g. litellm/claude-sonnet.
When available, the run result's JSON cost field reports the final response's cost, not the total across earlier requests in a run with tool calls. Streaming falls back to usage.cost when no positive cost header is available. To enable that metadata, set this in the LiteLLM proxy's YAML configuration, not Axe's config.toml:
litellm_settings:
include_cost_in_streaming_usage: true
If the proxy does not report a valid cost, the JSON cost field is omitted.
License
Apache-2.0. See LICENSE.
Ähnliche Projekte entdecken
Wird geladen…