An agent that behaves like a person, on every platform you use.
It has a character of its own, remembers, learns from the people it talks to, and judges for itself when to speak.
English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Español · Français · Deutsch · Português · Русский
personagent is an agent that behaves like a person: it has a character of its own, remembers, learns from the people it talks to, and judges for itself when to speak. It works wherever you do: in group chats and private chats on QQ, WeChat, Telegram, Discord and eighteen more platforms, in a window on your computer, and inside coding assistants such as Claude Code and Codex. You pick or write its character, and it runs on any OpenAI-compatible model.
Connect apps, in the same local page as setup and the character chat.
Why personagent
| It has a character of its own. |
Seven ready personalities. Three are characters the community already draws: the DeepSeek whale girl, the GPT dragon girl and the Claude lady, with portraits that blink, think and talk. Rewrite the persona whenever you like. What the character learned is kept. |
| It talks like a person. |
It writes the way people write in a chat: short, plain sentences in the language of the conversation, with no lists, headings or assistant phrases, and it says so when it does not know something. On most platforms a reply comes as a few short messages with a pause for typing between them, and Telegram, Discord and Matrix show the typing sign meanwhile. It picks up the stickers people send and uses them where they fit, and at night it mostly stays out of the talk unless called. If you turn it on, it starts a conversation after a long silence and comes back to plans people mentioned. |
| It remembers. |
Each chat has its own memory: recent messages that survive a restart, a summary of earlier conversation, dated events and facts about people, which it keeps current by itself. Everything it remembers is listed in the Activity view, where any item can be forgotten or brought back. |
| It learns from corrections that hold up. |
What a correction teaches, like what the group calls the gym, carries into every later reply in that chat. A troll or a bystander cannot retrain it. Where reactions cannot settle a change, it decides itself and records why; nobody has to approve anything. Every change is on record, and any of them can be rolled back. |
| It knows when to stay quiet. |
In a group it answers when called. Otherwise a model judges whether a person would chime in. A burst of messages gets one reply. |
| It connects to all your platforms. |
Twenty-two chat platforms connect from one page, by a phone scan or one or two pasted values. Most take both group chats and private chats. The same agent answers in a window on your computer and inside Claude Code, Codex and DeepSeek Harness. Any other platform can be added through an AstrBot, Koishi or Matrix bridge, or a connector you write. |
| It works with what you have. |
Any OpenAI-compatible model: OpenRouter's free models, a paid service, or one running on your own computer with Ollama. One command opens it, in English, Chinese or eight more languages, and one pasted model key starts the chat. |
It also remembers and forgets when asked in chat: Nova, remember Sam is vegetarian, Nova, forget vegetarian (memory commands). What it keeps, and for how long, is in the memory section of the guide.
Start here
python -m pip install personagent
personagent
With uv, uvx personagent runs it without a separate install step. On Windows you can also download the source ZIP and double-click start.bat.
It opens in a window of its own on Windows, and in your browser on macOS and Linux. Paste a model API key and click Verify & start chatting. No key yet? OpenRouter's free models are preselected, and their key costs nothing. personagent demo plays three scripted scenes with no key at all. The getting-started guide walks through the page screen by screen.
personagent is free. You pay the model service you choose, at its own rates. OpenRouter's free models allow 50 requests a day, and some free providers keep what they receive; Ollama runs a model on your own computer with no key.
Connect your platforms
Open Connect apps in the local page:
| On the page | Apps | What you need |
|---|---|---|
| Scan to connect | QQ, personal WeChat | Your phone. WeChat bots get one-to-one chats only |
| Paste one or two values | Telegram, Discord, Matrix, Twitch, IRC, Zulip, VK, Stoat, KOOK, Feishu/Lark, DingTalk, Slack, WeCom AI bot, Mattermost, Misskey | Values from the app's console; the page says which |
| Advanced | WeCom app, WeChat Official Account, QQ webhook, OneBot v11 (NapCat), Satori | A public address, or other software on this computer |
Connected apps start again each time personagent starts. The scan-to-connect apps, Telegram, Discord, Matrix, Twitch, IRC, Zulip, VK and Stoat are connected by personagent itself; the rest go through an AstrBot it downloads and runs in the background. On a server without a display, personagent connect <platform> connects any of those ten from the terminal, with the same steps and checks as the page, and personagent up starts everything without a browser. Setup for each app is in the user guide, and QQ from zero in the Chinese deployment guide.
Already running AstrBot, Koishi or Matrix? personagent can sit behind it as the agent: see bridges you run yourself, the Satori connector and the Matrix connector.
Coding agents
Let one set it up. Give the line below to a coding agent that can run commands on your computer. You paste your model key into the local page yourself, so the key never passes through the agent.
Read https://raw.githubusercontent.com/wangkant/personagent/main/docs/setup-for-agents.md and set up personagent for me.
Talk to your character while you work. Claude Code, Codex and DeepSeek Harness (dsh) can reach the character, with the same chat and memory as the local page:
personagent connect claude-code
personagent connect codex
personagent connect dsh
--remove takes it out again, and Coding assistants under Connect apps does both from the page. The guide covers permissions and --react, which lets the character say a line when a turn ends.
Update and uninstall
When a newer version is on PyPI, the page shows a notice with the update command. With pip that is python -m pip install -U personagent. On most installations, Update and reopen in the page's App view runs it for you. Settings, character, what it learned and connected apps carry over. To remove it, follow the uninstall steps.
Privacy
Everything personagent stores stays on your machine, in one home folder. The model provider you choose sees the conversations it answers, and once a day personagent asks pypi.org whether a newer version is out (UPDATE_CHECK_ENABLED=false stops that). Before you connect it to real people, tell them it is a bot and get their consent; the guide lists what goes where.
Documentation
- User guide: setup, connectors, teaching it, the Activity view, troubleshooting.
- Deployment guide: running it for real, costs, and what to check when the bot goes quiet.
- Connector protocol: for writing your own connector.
- Tools: the scripts in
tools/, for running from a clone. - Changelog · Contributing · Security policy · Disclaimer
License
personagent is licensed under the PolyForm Noncommercial License 1.0.0 © 2026 Qiankang (Kant) Wang: free to use, change and share for noncommercial purposes, and not for commercial ones. The connectors under integrations/ remain under the MIT License, as do versions up to 1.4.0. The three character portraits are licensed under CC BY-NC-SA 4.0, with credits in persona_agent/static/characters/LICENSE.md.
Acknowledgements
- Other chat platforms are reached through AstrBot, NapCat, Koishi with satori-python, and matrix-nio with the mautrix bridges; the WeChat connection follows Tencent's openclaw-weixin protocol notes.
- Learning from reactions draws on Self-Feeding Chatbot, Alexa self-learning and BlenderBot 3x; the lorebook follows SillyTavern's World Info.
Metadata
Release files for personagent 1.4.3
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 | Actions |
|---|---|---|---|---|
| personagent-1.4.3.tar.gz | 2.1 MB | With provenance | Details for personagent-1.4.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| personagent-1.4.3-py3-none-any.whl | Python 3 | none | any | Details for personagent-1.4.3-py3-none-any.whl |
Total release size: 4.2 MB
Release files / personagent-1.4.3.tar.gz
| Download URL | personagent-1.4.3.tar.gz |
|---|---|
| Size | 2.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f4d8e8ce2388d09fb185896473ebc9377f6f1c13eebed99cd5afd2c61792944
|
|
BLAKE2b-256 checksum How to use checksums |
20898ffd02c56d209c3cee6c5415abbf728d6be2e70c931c7eead6890b234cc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / personagent-1.4.3-py3-none-any.whl
| Download URL | personagent-1.4.3-py3-none-any.whl |
|---|---|
| Size | 2.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86022a6e5df5187e2b6006ad628a2cdccd2714f7a2daa64bfa273c3ddff1d5ce
|
|
BLAKE2b-256 checksum How to use checksums |
02e08d08e99eccca896a6707e0a083417feaab70f76a240c3237a5521b679586
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logSecurity for personagent 1.4.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for personagent-1.4.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logA 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.