fastaxi
Build AXI (Agent eXperience Interface) command-line tools from typed Python functions.
Documentation: nerd-smith.github.io/fastaxi
AXI is a set of principles for CLIs that AI agents use: compact output, a few fields by default, totals and next-step hints, explicit empty states, structured errors and a live home view. With fastaxi you write ordinary functions that return Pydantic models, and it takes care of all of that. The same commands can also be handed to agent frameworks (PydanticAI, LangChain, the OpenAI Agents SDK, ...) as tools.
Install
uv add fastaxi
fastaxi needs Python 3.10 or later.
Example
from typing import Annotated
from pydantic import BaseModel
from fastaxi import AXI, Default
app = AXI("todo-axi", description="Track todos for the current project")
class Todo(BaseModel):
id: Annotated[int, Default] # shown in lists by default
title: Annotated[str, Default]
status: Annotated[str, Default]
assignee: str | None = None # available with --fields
@app.command(name="list", next_steps=["{bin} view <id>"])
def list_todos(status: str = "open") -> list[Todo]:
"""List todos.
Args:
status: Filter by status.
"""
return db.query(status)
$ todo-axi list
id,title,status
41,Fix login redirect,open
42,"Write docs, examples",open
count: 2 of 2 total
help[1]: todo-axi view <id>
$ todo-axi list --state done
error: unknown flag --state
hint: did you mean --status?
flags[3]: "--status","--fields","--format"
A complete version lives in examples/todo_axi.
Learn more
- Quickstart: a complete small tool, and how to run it.
- Building AXIs: return types, output, flags, errors and help text.
- Connecting to coding agents: session hooks and Agent Skills for Claude Code, Codex and OpenCode.
- Agent-framework tools: the same commands as PydanticAI, LangChain or OpenAI Agents SDK tools.
- API reference
Development
See Development for setup, tests and conventions. To preview the docs locally:
uv run --group docs mkdocs serve
Metadata
Release files for fastaxi 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastaxi-0.1.0.tar.gz | 179.0 kB | With provenance | Details for fastaxi-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastaxi-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for fastaxi-0.1.0-py3-none-any.whl |
Total release size: 224.0 kB
Release files / fastaxi-0.1.0.tar.gz
| Download URL | fastaxi-0.1.0.tar.gz |
|---|---|
| Size | 179.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb857673671b2c415702c14883195ddbd1b5153fbc2a446e88b9957c9d84de8f
|
|
BLAKE2b-256 checksum How to use checksums |
85610f7c110212b3365e2c98dc12fc95f1ab542e582f0bdd4b5216ecac1c65d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / fastaxi-0.1.0-py3-none-any.whl
| Download URL | fastaxi-0.1.0-py3-none-any.whl |
|---|---|
| Size | 45.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23e99bfa02412f38edc482cc2fab2b8eaf50f31f0458f5271203fc591b6b4e1b
|
|
BLAKE2b-256 checksum How to use checksums |
e1a1405574c6726ec6c6d1530b2c5e4c1525db78d7313c733137459bc0933813
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for fastaxi 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for fastaxi-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.