Skip to main content

agentkai logo — animated fluffy yeti mascot

agentkai

PyPI Python License Docs Website

An open-source personal AI agent that runs on your own computer.

agentkai is model-agnostic by design: bring your own model — Claude, Gemini, GPT, a local Ollama model, GLM, or anything LiteLLM speaks — and the agent keeps the same tools, memory, scheduler, and dashboard. Everything runs locally first; your data stays on your machine.

agentkai dashboard — chat with the agent

60-second quickstart

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.

⭐ If agentkai helped you, a star means a lot — it helps other developers find the project.

Why agentkai

Cloud assistants rent you a brain. agentkai gives you the whole animal: one agent loop with real tools, a memory that persists in plain markdown, a scheduler that works while you sleep, and a local dashboard — all wired to whichever model you choose, on your own machine.

  • Model-agnostic, BYOK. Aliases (claude, gemini, gpt, glm, local) with fallbacks and capability probing. Keys are yours, never logged, never leave your machine except to the provider you chose.
  • Real tools, permission-gated. Shell/filesystem (root-scoped, blocklisted), a real Chromium browser, an MCP client (stdio + SSE), and 12 bundled skills: Gmail, Calendar, GitHub, Spotify, places, images, voice, media, payments, shopping, travel, health. Every tool call passes a risk-based allow/ask/deny gate, audited — unattended jobs can never run high-risk tools.
  • Markdown memory. SOUL.md / USER.md / MEMORY.md, daily logs, people & groups, keyword search. Plain files you can read, edit, and git — no black-box vector store.
  • Scheduler. Cron, one-shot, heartbeat check-ins, and nightly dreaming (memory consolidation), all in SQLite. Manage jobs from the CLI or the dashboard — create, delete, run now.
  • Messaging gateway. Telegram, Discord, built-in WebChat, and an experimental WhatsApp bridge. Per-session isolation; owner approvals via APPROVE / DENY.
  • Voice & media. Speech-to-text/TTS via faster-whisper or OpenAI; image generation via OpenAI or a local Stable Diffusion server. 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.

CLI reference

Command What it does
agentkai run PROMPT run one agent task with live streaming output
agentkai chat PROMPT send one prompt, print the final answer
agentkai models show model aliases and what they resolve to
agentkai doctor check the setup: config, provider keys, scheduler DB, memory, tools, media providers, dashboard assets (exits 1 on any [FAIL])
agentkai runs list/show RUN_ID inspect past runs from the event log: status, model, tools, full replay
agentkai dashboard launch the local web dashboard (127.0.0.1 only, token-secured)
agentkai gateway run the messaging gateway daemon (Telegram/Discord/WebChat/WhatsApp)
agentkai scheduler add/list/remove/run-once/run-due manage scheduled agent jobs
agentkai devices pair phones/laptops and reach them from the agent
agentkai goals durable user goals: create, track, close
agentkai track tracked items: reservations, deliveries, reminders
agentkai skills list/show/install manage SKILL.md playbooks

Run agentkai <command> --help for flags on any command.

Web dashboard

Prefer a UI? agentkai dashboard launches a local web app: chat with the agent, watch runs stream in with tool calls inline, browse and edit memory, inspect the tool registry, and manage scheduled jobs — create, delete, or trigger a run now.

agentkai dashboard
# → http://127.0.0.1:8931/?token=<fresh-token-every-launch>

It binds only to 127.0.0.1 (never exposed to the network), generates a fresh login token on every launch, and loads zero third-party resources — the entire UI is packaged with agentkai and works fully offline. Same agent, same tools underneath.

agentkai dashboard — chat agentkai dashboard — scheduler job management

Docs

📚 Documentation: docs/

Quickstart · Models · Tools · Browser · Memory · Scheduler · Channels · Skills · Voice · Media · Devices · Goals · Dashboard · Privacy · Troubleshooting

Honest scope note: this is early-stage software (v0.3.0). Core flows — agent runs, tools, memory, scheduler, dashboard, channels — are implemented and tested. Areas marked experimental in the docs are real code with real limits; they are labeled, not hidden.

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. See LICENSE.

Metadata

Release files for agentkai 0.6.3

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.6.3
File Size Uploaded Provenance
agentkai-0.6.3.tar.gz 5.5 MB Without provenance Details

Built distribution (wheel)

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

Total release size: 10.9 MB

Release files / agentkai-0.6.3.tar.gz

Download URL agentkai-0.6.3.tar.gz
Size 5.5 MB
Tags Source
SHA-256 checksum
How to use checksums
9d70d7f576a3a80a7224eae74a4f851dbac7ab70ebac79f16d412c82b97d0d62
BLAKE2b-256 checksum
How to use checksums
977dc613a9090e83593bc093fd37666b18adefc84495c28e311bf9ac57639c9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via okfsmith-pypi-skill/1.0

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

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

Security for agentkai 0.6.3

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.

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