Connect → llm
Use AxForge with llm
llm runs prompts from the command line and
keeps a log of them. One entry in its extra-openai-models.yaml adds an AxForge model.
- An AxForge API key. Get one (a minute).
- Python 3.9 or newer. This guide was tried with llm 0.36 on 2026-10-17.
Set it up
-
Install llm
pip install llm -
Add the AxForge model
Create
extra-openai-models.yamlin llm's folder, the onellm logs pathshows (on Linux~/.config/io.datasette.llm/):- model_id: axforge model_name: qwen3.8-27b api_base: https://api.axforge.ai/v1 api_key_name: axforgemodel_idis the name you type after-m;model_nameis ours. Add more entries the same way, for exampleaxforge-glmforglm-5.3-flash. -
Store your key
llm keys set axforgePaste the key when it asks. llm keeps it in its own key file under the name
axforge, theapi_key_nameabove. -
Ask
llm -m axforge "Say hello in five words"
The settings
| Key | Value |
|---|---|
| model_id | axforge (your choice) |
| model_name | qwen3.8-27b, glm-5.3-flash or mimo-v2.6-flash |
| api_base | https://api.axforge.ai/v1 |
| api_key_name | axforge (the name used in llm keys set) |
Which model for what: qwen3.8-27b is the
everyday default and reads images, glm-5.3-flash thinks before it answers,
mimo-v2.6-flash is the fastest. To make it the default: llm models default axforge.
Check that it works
llm -m axforge answers, and llm logs -n 1 shows the prompt and reply. The
call shows in the console under API Keys → Recent calls within a
minute.
When it does not work
Not sure which it is? The connection doctor makes seven small
checks on your key and names the fix: irm https://dev.axforge.ai/assets/axforge-doctor.ps1 | iex in
PowerShell, curl -fsSL https://dev.axforge.ai/assets/axforge-doctor.sh | bash on macOS and Linux.
| What you see | What it means | Fix |
|---|---|---|
| "Unknown model: axforge" | llm did not find the YAML file | put it in the folder of llm logs path, named exactly extra-openai-models.yaml |
| "Invalid API key. Create one at https://console.axforge.ai/keys." | no key under the name axforge, or it was refused | run llm keys set axforge again and paste the key whole |
Test a call says in one click whether a problem is your key, your balance or us.