Skip to main content

No project description provided

Project description

Ainator

Ainator is a CLI/API framework for AI agents built on the agno framework. It provides interactive chat, persistent sessions, knowledge bases (RAG), and built-in tools for shell execution, file operations, and web search.

Features

  • Interactive Chat: Persistent sessions with compression and summarization
  • Knowledge Bases (RAG): Embed code repositories (AST-aware chunking), websites, and directories
  • Built-in Tools: Shell execution (with safety controls), file operations, DuckDuckGo search
  • Session Management: List, switch, show, and compress sessions
  • Learning & Memory: User profile, memory, and session context
  • Cultural Knowledge: Context-aware cultural knowledge integration
  • KeyboardInterrupt Handling: Proper handling of interruption signals
  • Skills System: Extensible via .ainator/skills/ directory
  • Web Server: FastAPI server with Swagger documentation
  • Model Support: VLLM, DeepSeek, OpenAI, Anthropic...

Installation

pip install ainator

Quick Start

# Run a one-off prompt (creates new session)
ainator hi "What is the capital of France?"

# Continue in existing session
ainator but "Tell me more about that"

# Or start interactive chat
ainator chat

# Or Start the web server (localhost:7777/docs)
ainator server
# Then consume it through https://github.com/agno-agi/agent-ui

Commands

Chat & Prompt

  • ainator hi "your prompt" - One-off prompt execution (creates new session)
  • ainator but "your prompt" - Continue in existing session
  • ainator chat - Interactive chat session

Test-Driven Development & Fixing

  • ainator fix "python my_script.py or any command or pytest" - Run until rc == 0

Session Management

  • ainator sessions - List all sessions
  • ainator switch <id> - Switch to a session
  • ainator show - Show messages in current session

Skills Management

  • ainator skills - List available skills

RAG Management

  • ainator rag code add ./path/to/repo python - Add code repository
  • ainator rag website add <url> - Add website content
  • ainator rag search <knowledge-name> "query" - Search knowledge base
  • ainator rag remove <knowledge-name> - Remove knowledge base
  • ainator rag - Show RAG status

Server

  • ainator server - Start FastAPI web server (port 7777)

Configuration

Configuration file: .ainator/config.yml

Example Configuration

model: agno.models.vllm:VLLM id=coder
db: agno.db.sqlite:SqliteDb
tools:
  - FileTools
  - ShellTools
  - DuckDuckGoTools
knowledge:
  - name: ainator
    path: /home/jpic/src/ainator
    plugin: code
agent:
  reasoning: true
  add_culture_to_context: true
  store_events: true
learning:
  user_profile: true
  user_memory: true
  session_context: true

Model Configuration Examples

# VLLM
model: agno.models.vllm:VLLM id=coder

# DeepSeek
model: agno.models.deepseek:DeepSeek

# OpenAI
model: agno.models.openai:OpenAI

# Anthropic
model: agno.models.anthropic:Anthropic

Environment Variables

  • AINATOR_MODEL - Override the model configuration

Architecture

Core Framework

  • agno: Core AI agent framework (agents, models, tools, SQLite database)
  • cli2: Command-line interface framework

Knowledge Plugins

  • code: Repository embedding with AST-aware chunking
    • Uses llama-index CodeSplitter and HierarchicalNodeParser
    • BAAI/bge-small-en-v1.5 embeddings
    • LanceDB vector storage
  • site: Website scraping with Parsel
  • generic: Directory embedding

Skills System

Extensible via .ainator/skills/ directory, just create a skill in there or clone a skills repo such as https://github.com/anthropics/skills

Renderer

Streaming Markdown output

Server

FastAPI server via AgentOS, consumable with AgentUI or the AgentOS client, or plain HTTP even.

Tools

  • Enhanced shell execution with chunked output
  • File operations
  • DuckDuckGo search
  • Custom knowledge tools (RAGs)

Compression

Automatic

Learning

  • User profile management
  • Memory system
  • Session context tracking

Development

Installation for Development

pip install -e '.'

Testing

pytest tests/

Version

Version 0.0.3 (defined in src/ainator/__about__.py)

License

MIT © 2026-present jpic

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ainator-0.0.4.tar.gz (17.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ainator-0.0.4-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file ainator-0.0.4.tar.gz.

File metadata

  • Download URL: ainator-0.0.4.tar.gz
  • Upload date:
  • Size: 17.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for ainator-0.0.4.tar.gz
Algorithm Hash digest
SHA256 947c5a05c826352fbb12edfb3a71b1067a9b85d2ba91522485be01a3e2aa6dbb
MD5 c6bc14b98540b4397808a689df63a5a5
BLAKE2b-256 ca637eb32782ec0aed5ab83310509f67360e555cc57a7aa4938f872f2dea3a5c

See more details on using hashes here.

File details

Details for the file ainator-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: ainator-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 29.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for ainator-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 151f4740e851cc0c5a72ac01151c68f534fc84d8afd6ab96798274aec867c077
MD5 db906a9e41aeca22f476c12bfaa1bfff
BLAKE2b-256 1a57e3dc7f3115e449f7f3c6d392f284d61155baaf2a144c5208451b54dc25da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page