A character for your group chats that knows when to stay quiet, and learns from being corrected.
English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Español · Français · Deutsch · Português · Русский
personagent is a character for your group chats: pick a ready one or write your own, and run it on any OpenAI-compatible model. Start by chatting with it in your browser, then bring it into QQ, WeChat, Telegram, Discord and a dozen more from the same local page.
Connect apps, in the same local page as setup and the character chat.
Why personagent
|
It knows when to stay quiet. It answers when called. Otherwise a model judges whether a person would chime in. A burst of messages gets one reply. |
|
|
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 change needs two agreeing reactions from the same chat, one of them strong. A troll or a bystander cannot retrain it. Every change is on record, and any of them can be rolled back. |
|
|
It is easy to start, and lives where your group is. One command opens a local page in your browser, in English, Chinese or eight more languages. Paste one model key to chat: ten model services are preset, and any other OpenAI-compatible one works. Connect an app with a phone scan or one or two pasted values. The Activity view shows what the character did there. |
|
|
It can be a ready character, or your 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 while a reply is on its way and talk when it arrives. Rewrite the persona whenever you like. What the character learned is kept. |
- Each chat has its own memory, and it forgets when asked:
Nova, remember Sam is vegetarian,Nova, forget vegetarian,Nova, what do you remember(memory commands). What a group noted about someone follows them into their DM with it, and never the other way. - It answers in the language the chat uses. Starter personas come in each of the page's ten languages; the bundled examples, filters and prompts are English and Chinese.
- It is measured:
personagent evalscores when it speaks, whether it stays in character, and whether corrections stick (results).
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. personagent is tested on Linux with Python 3.10–3.14 and on Windows with Python 3.12.
Your browser opens on a local page. Paste a model API key and click Verify & start chatting; one small request checks the key. No key yet? OpenRouter's free models are preselected, and their key costs nothing. To watch it before you get any key, personagent demo plays three scripted scenes for free. The getting-started guide walks through the page screen by screen.
What it costs
personagent is free. You pay the model service you choose, at its own rates.
- Free to start. OpenRouter's free models allow 50 requests a day; the model can change from one request to the next, and some free providers keep what they receive. Zhipu's
glm-4.7-flashis free as well, and Ollama runs a model on your own computer with no key. - What calls the model. Every reply, and two smaller steps: deciding whether to join in when nobody called it, and judging how people react to its replies.
personagent doctorandpersonagent evalsend requests too; the deployment guide has the rest. - What never does.
personagent demoand the memory commands.
Put it in your group
Open Connect apps in the local page. It groups the apps like this:
| 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, 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 |
Credentials are checked before they are saved, and connected apps start again each time personagent starts. The scan-to-connect apps, Telegram and Discord are connected by personagent itself; the rest go through an AstrBot it downloads and runs in the background, with nothing else to open. On a server, personagent up starts the character and every connected app without a browser. Setup for each app is in the user guide, and QQ from zero, step by step, in the Chinese deployment guide.
Already running a bridge?
- AstrBot:
personagent connect astrbotinstalls the plugin and the shared token. The guide covers one on another machine. - Koishi, or any Satori server: the Satori connector.
- Matrix, with WhatsApp and Signal behind mautrix bridges: 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. It asks what you want, installs personagent and starts the local page. You paste your model key into that 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. Once a model key is set up, Claude Code, Codex and DeepSeek Harness (dsh) can reach the character:
personagent connect claude-code
personagent connect codex
personagent connect dsh
Start a new session there (restart DeepSeek Harness first) and ask it to say something to your character. It is the same one-to-one chat and memory as the local page. On Claude Code and Codex, --react lets the character say a line when a turn ends. --remove takes everything out again. The guide covers permissions, what --react sends to your model service, and other MCP tools.
Measured
personagent eval drives the real agent through labelled chat moments. The latest run, on 2026-10-18, was measured on 1.3.0: the shipped character on two models through OpenRouter, every case tried three times, with Claude Opus 5.5 judging blind. English / Chinese:
| deepseek-v4.1-flash | gpt-6-luna | |
|---|---|---|
| Right about when to speak (60 moments) | 83% / 80% | 93% / 91% |
| Plays the character better than the same model given only its prompt (40 moments) | 63% / 58% | 75% / 53% |
| Uses what a correction taught in a later, differently worded message | 76% / 56% | 71% / 67% |
- It rarely ignores a message meant for it. Most misses are its name used for something else, such as a cinema or a puppy.
- None of 84 corrections from trolls, bystanders or people who walked away got through.
The full results give the intervals, the misses by kind, the method and every report.
How it compares
Projects it is often compared with, as of November 2026:
- AstrBot (AGPL-3.0) is a bot framework for more than a dozen platforms, with a WebUI and a large plugin market. It can reply unasked at random (10% of the time, off by default) and leaves learning to plugins.
- MaiBot (GPL-3.0) is a character bot for QQ, through NapCat, with a WebUI and a one-click launcher. A planner model decides how often it talks, and it picks up expressions and slang from the chat.
- ChatLuna's character plugin for Koishi (AGPL-3.0) joins in on rules: a fixed interval, how busy the chat is, or how long it has gone quiet.
- ElizaOS (MIT) is an agent framework in TypeScript for Discord, Telegram, Slack and more, where a model decides whether to respond.
What personagent has built in: it learns from how people react to its replies (corrections, rejections, retries they accepted), keeps a record of every change with a way to roll it back, and publishes an eval of how it behaves.
Where they are ahead: desktop apps with every setting in a WebUI, big plugin ecosystems, and slang, sticker packs and image memory. If you already run AstrBot or Koishi, you don't have to choose: personagent can run behind either one as the character.
Update and uninstall
When a newer version is on PyPI, the page shows a notice with the update command for the way you installed it. With pip that is python -m pip install -U personagent. The home folder carries over: settings, character, what it learned and connected apps.
To remove it, first take it out of any coding agent you connected (personagent connect claude-code --remove, or the same with codex or dsh). Then quit personagent and run python -m pip uninstall personagent. Last, delete the home folder, which is ~/personagent for an install from PyPI unless you chose another: it holds your key, the character and everything it learned, so this cannot be undone. The full steps cover uv, pipx and what to revoke.
Privacy
Everything personagent stores stays on your machine, in one home folder: .env with your keys, persona.txt, runtime/, and platforms/ with the managed AstrBot and the direct connections' credentials. 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: install, setup, the terminal chat, connectors, teaching it, the Activity view, troubleshooting.
- Deployment guide: running it for real: connectors, QQ, exposing the endpoints, costs, and what to check when the bot goes quiet.
- Connector protocol: one signed HTTP request per message, for writing your own connector.
- Tools: the scripts in
tools/, for running from a clone. - Changelog · Contributing · Security policy · Disclaimer
License
The code is MIT © 2026 Qiankang (Kant) Wang. 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.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 | Actions |
|---|---|---|---|---|
| personagent-1.4.0.tar.gz | 1.3 MB | With provenance | Details for personagent-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| personagent-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for personagent-1.4.0-py3-none-any.whl |
Total release size: 2.7 MB
Release files / personagent-1.4.0.tar.gz
| Download URL | personagent-1.4.0.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
130d1fc1c8583ff23688608b31af7219411287d0d70dc45ecd269583ca60a366
|
|
BLAKE2b-256 checksum How to use checksums |
8c7d1bb1fcf3d21da1d87baf05be09acf10587c1c52ac5dc93f013deda98dc76
|
| 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 10, 2026.
Transparency logRelease files / personagent-1.4.0-py3-none-any.whl
| Download URL | personagent-1.4.0-py3-none-any.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc559ceecf434e3f388968b1e8d6d6b4e65eea743ec2297eb8e44ea814e44747
|
|
BLAKE2b-256 checksum How to use checksums |
2029b3e96204dfee532c45830e0ffe7e702f5a18bd868fe69c942f0046053fdd
|
| 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 10, 2026.
Transparency logSecurity for personagent 1.4.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for personagent-1.4.0.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 10, 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.