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, widgetsdocs/— user documentation for every feature (original docs)research/— architecture research and case studiesexamples/— example configs and skills
Status
v0.2.0 — core flows (agent runs, tools, memory, scheduler, dashboard,
channels) are implemented and tested; the dashboard now manages
scheduled jobs (create, delete, run now). 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
Metadata
Release files for agentkai 0.2.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 | |
|---|---|---|---|---|
| agentkai-0.2.0.tar.gz | 5.4 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentkai-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.9 MB
Release files / agentkai-0.2.0.tar.gz
| Download URL | agentkai-0.2.0.tar.gz |
|---|---|
| Size | 5.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74301745ac2cc866d8948e68ae917ad0ed59cc0ebc0497fa9e99c5e12607be06
|
|
BLAKE2b-256 checksum How to use checksums |
aa75a488669dbd1c9052796dc26afb3dad552de2b6ea03277ade8c4a9c26a284
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
okfsmith-pypi-skill/1.0
|
Release files / agentkai-0.2.0-py3-none-any.whl
| Download URL | agentkai-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72dc55c6263450bc3bc4f86e82de7ae8a57579fd58dc23b3a60ea173f983fb80
|
|
BLAKE2b-256 checksum How to use checksums |
11935bc83e341e3bf33bfe8913c81fbaddb0e67cdceb8b099767ab6632f89371
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
okfsmith-pypi-skill/1.0
|
Security for agentkai 0.2.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.