Skip to main content

agentkai logo — animated fluffy mascot

agentkai

An open-source personal AI agent that runs on your own computer. Model-agnostic by design: bring your own model — Claude, Gemini, GPT, Ollama (local), GLM, or anything LiteLLM speaks — and the agent keeps the same tools, memory, scheduler, and dashboard.

                    ┌─────────────┐
                    │    You      │
                    └──────┬──────┘
        ┌──────────────────┼──────────────────┐
        ▼                  ▼                  ▼
  ┌───────────┐     ┌─────────────┐     ┌─────────────┐
  │   CLI     │     │  Dashboard  │     │   Gateway   │
  │agentkai   │     │ 127.0.0.1   │     │ Telegram /  │
  │run · chat │     │ token-auth  │     │ Discord /   │
  └─────┬─────┘     └──────┬──────┘     │ WebChat /   │
        │                  │            │ WhatsApp*   │
        └──────────────────┼────────────┴──────┬──────┘
                           ▼                   ▼
                    ┌──────────────────────────────┐
                    │        Agent loop            │
                    │  think → tool-call → observe │
                    │  streaming · timeouts ·      │
                    │  approval gates · event log  │
                    └──────────────┬───────────────┘
        ┌────────────┬─────────────┼──────────────┬────────────┐
        ▼            ▼             ▼              ▼            ▼
  ┌──────────┐ ┌──────────┐ ┌────────────┐ ┌──────────┐ ┌──────────┐
  │ Providers│ │  Tools   │ │  Browser   │ │  Memory  │ │Scheduler │
  │ Claude   │ │ exec etc │ │ Chromium   │ │ markdown │ │ cron ·   │
  │ Gemini   │ │ MCP      │ │ real pages │ │ SOUL/USER│ │ heartbeat│
  │ GPT/Oll. │ │ 12 skills│ │ clicks/forms│ │ daily log│ │ dreaming │
  └──────────┘ └──────────┘ └────────────┘ └──────────┘ └──────────┘

* WhatsApp via an experimental user-run bridge sidecar.

Features

  • Model-agnostic — aliases (claude, gemini, gpt, glm, local) with fallbacks, capability probing, BYOK keys that are never logged. Fully offline with Ollama.
  • Real tools — shell/filesystem (root-scoped, blocklisted), a real Chromium browser, MCP client (stdio + SSE), 12 bundled skills (Gmail, Calendar, GitHub, Spotify, places, images, voice, media, payments, shopping, travel, health).
  • Permission gates — risk-based allow/ask/deny on every tool call, audited. Unattended jobs can never run high-risk tools.
  • Markdown memory — SOUL/USER/MEMORY.md, daily logs, people & groups, keyword search. Plain files you can edit and git.
  • Scheduler — cron/at jobs, heartbeat check-ins, nightly dreaming (memory consolidation), all in SQLite.
  • Messaging gateway — Telegram, Discord, built-in WebChat, and an experimental WhatsApp bridge; per-session isolation, owner approvals via APPROVE/DENY.
  • Local dashboard — FastAPI on 127.0.0.1 only, per-launch token, offline SPA, live SSE streaming, run replay.
  • Voice & media — faster-whisper / OpenAI STT+TTS; image generation via OpenAI (paid) or local Stable Diffusion. Honest errors when nothing is configured — nothing faked.
  • Devices & goals — pair your phone via the companion-app contract; durable goals and tracked items with a daily briefing prompt.

Quick start

pip install agentkai
export ANTHROPIC_API_KEY=...   # or GEMINI_API_KEY / OPENAI_API_KEY / ZHIPUAI_API_KEY
agentkai run "summarize what's in ~/Documents" --model claude
agentkai dashboard             # local UI at http://127.0.0.1:8931/

No key? Install Ollama, ollama pull qwen3:32b, then agentkai run "hello" --model local — fully offline.

Full guide: docs/quickstart.md · all docs: docs/index.md

Layout

  • src/agentkai/ — the package: agent loop, providers, tools, browser, channels, dashboard, devices, memory, scheduler, skills, voice, media, goals, widgets
  • docs/ — user documentation for every feature (original docs)
  • research/ — architecture research and case studies
  • examples/ — example configs and skills

Status

v0.1.0 — core flows (agent runs, tools, memory, scheduler, dashboard, channels) are implemented and tested. Items marked experimental in the docs (WhatsApp bridge, video generation) are real code with real limits. See docs/troubleshooting.md for known gaps.

Development

git clone https://github.com/Bilal-Junaid-Jiwani/agentkai
cd agentkai
python -m venv .venv && .venv/bin/pip install -e ".[test,voice]"
.venv/bin/python -m pytest tests/   # full suite

License

Apache-2.0

Release files for agentkai 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentkai 0.1.0
File Size Uploaded
agentkai-0.1.0.tar.gz 5.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentkai 0.1.0
File Interpreter ABI Platform
agentkai-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.8 MB

Release files / agentkai-0.1.0.tar.gz

Download URL agentkai-0.1.0.tar.gz
Size 5.4 MB
Tags Source
SHA-256 checksum
How to use checksums
0fcfd0f53ca20a26b7f5aedbd63c1c76ad241c050ee0129a865a01261989dfec
BLAKE2b-256 checksum
How to use checksums
54b4844e5c92077519b3fb566217cc1f25294e57240b7231d9afeae4f688918b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via okfsmith-pypi-skill/1.0

Release files / agentkai-0.1.0-py3-none-any.whl

Download URL agentkai-0.1.0-py3-none-any.whl
Size 5.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
eb40ffb14e903c4a64146a50122c1c091032be93aa0ef1101ff3036bc63bfe5d
BLAKE2b-256 checksum
How to use checksums
f8cc90b61ea334be098143ff4e50db500e982834f60978a2ab50bd81ce60f4c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via okfsmith-pypi-skill/1.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page