Skip to content
HolidayrabbitPublic

About

Airgent is the conductor's podium for your AI agents.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

Airgent

Airgent

Airgent is a local-first agent base system. It exposes the same runtime through:

  • a CLI
  • an HTTP API
  • a WebUI

The runtime uses the OpenAI Agents SDK for orchestration, keeps short-term conversation history in a local SQLite-backed session store, and persists long-term memory locally.

When Airgent starts inside a project directory, that directory becomes the active workspace. Project-local skills are loaded from .agents/skills.

Stack

  • Python 3.11+
  • uv for environment and command management
  • FastAPI for API and static WebUI hosting
  • Typer for CLI
  • OpenAI Agents SDK for the agent runtime
  • SQLite for sessions, transcripts, and memory

Quick Start

uv sync
export OPENAI_API_KEY=your_key
export OPENAI_BASE_URL=https://xxx.example.com/v1
uv run airgent serve --reload

Then open http://127.0.0.1:10304.

Global Install

You do not need to create a virtual environment manually for normal use.

Install Airgent globally with uv:

sh scripts/install.sh

Or:

uv tool install --force .

Then you can run:

airgent tui
airgent serve

CLI

One-shot:

uv run airgent chat "给我一个今天的工作计划"

Interactive:

uv run airgent chat

TUI:

airgent tui

Inside the TUI:

  • Enter sends the current prompt
  • / opens the command palette
  • /resume searches and restores a previous session
  • Ctrl-O toggles full execution details for thinking/tool activity

Session inspection:

airgent sessions list
airgent sessions show <session-id>

Memory inspection:

airgent memory list
airgent memory search "uv python"
airgent memory add "The user prefers uv for Python envs" --tags python,tooling

API

Run the agent:

curl -X POST http://127.0.0.1:10304/api/v1/agent/run \
  -H 'Content-Type: application/json' \
  -d '{
    "input": "总结一下 Airgent 这个项目该怎么设计"
  }'

List sessions:

curl http://127.0.0.1:10304/api/v1/sessions

List memory:

curl http://127.0.0.1:10304/api/v1/memories

Notes

  • Local data defaults to ~/.airgent/airgent.db.
  • Project-local skills default to ./.agents/skills.
  • uv is the intended workflow for dependency management and execution.
  • .env is loaded automatically. These keys are supported:
OPENAI_API_KEY=sk-...
OPENAI_BASE_URL=https://your-proxy.example.com/v1
OPENAI_API_MODE=chat_completions
  • Airgent now configures the Agents SDK with an explicit AsyncOpenAI client, so proxy base_url settings are applied consistently for both CLI and API.
  • OPENAI_API_MODE defaults to chat_completions, because proxy services are usually more compatible with that mode than responses.
  • When OPENAI_BASE_URL is set, namespaced model IDs such as anthropic/claude-sonnet-4.5 are forwarded to the proxy as-is instead of being rejected as unknown providers.
  • SDK tracing is disabled by default because this project persists conversations locally instead of relying on hosted tracing.
  • Current root agent tools are:
    • read_file
    • create_file
    • edit_file
    • search_memory
    • remember_note
    • list_skills
    • load_skill

license

MIT

About

Airgent is the conductor's podium for your AI agents.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages