Skip to main content

personagent

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.

PyPI CI Python 3.10–3.14 License: PolyForm Noncommercial

English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Español · Français · Deutsch · Português · Русский

personagent runs on your own computer and keeps everything it stores there. 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.

The Connect apps view of the local page: the platforms that connect by scanning a code or by pasting a few values, the advanced platforms collapsed, and the coding assistants it can join

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.
Bring in a Tavern character card as one file, or describe a character in a sentence and have the persona drafted for you. Your own character saves as a card to share.
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 a few pasted values. Most take both group chats and private chats.
A platform you connect answers only the chats you approve: a stranger gets a short code, and you approve it on the page, where **This is me** also makes you the admin.
The same agent answers in a window on your computer and inside Claude Code, Codex and DeepSeek Harness.
Any software that takes an OpenAI-compatible address, such as Open WebUI or SillyTavern, can talk to the same character.
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 line installs it, with a Python of its own, on a computer that has nothing installed. The page is in English, Chinese or eight more languages, and signing in with OpenRouter in the browser, or one pasted model key, starts the chat; with Ollama or LM Studio already running, one click does.
It uses the tools you give it. Paste the block from an MCP server's README, and the character can look things up or act through that server's tools, one for a reply, answering in its own voice.
Each tool has a switch and a choice of who may cause its use: you alone, or anyone the character answers.
It runs where you need it. On your own computer in a window, or on a server, a NAS or in Docker, kept running by `personagent service install`.
With a page password set, the same page opens from a phone or another computer, behind a sign-in.

It also remembers and forgets when asked in chat (Nova is the default character's name): 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

Nothing needs to be installed first. Paste one line into a terminal.

Windows (PowerShell):

irm https://raw.githubusercontent.com/wangkant/personagent/main/install.ps1 | iex

macOS and Linux:

curl -LsSf https://raw.githubusercontent.com/wangkant/personagent/main/install.sh | sh

The installer brings its own Python, installs personagent and opens it; on Windows it also puts an icon on the desktop. Where PyPI or GitHub is slow to reach, it switches to mirrors in mainland China by itself. Running it again updates personagent.

With Python 3.10 or later already installed, python -m pip install personagent and then personagent do the same, and 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, which fetches Python as well when the computer has none.

It opens in a window of its own on Windows, and in your browser on macOS and Linux. Press Sign in with OpenRouter and approve in the browser, or paste a model API key and click Verify & start chatting. OpenRouter's free models are preselected; they still need an account or a key, which 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. One message can lead to more than one model request: besides the reply, the character at times decides whether to speak in a group, judges how a reply was received, or tidies its memory. 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 a few 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.

For everything else there is Other software on the same page: switch it on, copy the address, the key and the model name into any app that takes an OpenAI-compatible address, and that app talks to your character, with the same memory as everywhere else. The guide has the details, and personagent connect api does the same from a terminal.

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.

On a server

personagent page password --random   # prints a password for the page
PAGE_HOST=0.0.0.0 personagent up      # the service, the platforms and the page on port 8090
personagent service install           # keep it running after a reboot (Linux, macOS)

Open http://<the server's address>:8090/ from any device and sign in with the page password. Without a password the page refuses to listen beyond the computer itself. Plain HTTP shows the password to the network it crosses, so beyond a home network use an SSH tunnel, Tailscale or a reverse proxy with HTTPS. In Docker, docker compose up -d in a clone of the repository builds and starts it, and docker compose logs shows the password made on the first start; images are published at ghcr.io/wangkant/personagent with each release. The deployment guide has each step.

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 Removing personagent in the guide.

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

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

Metadata

Release files for personagent 1.5.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 personagent 1.5.0
File Size Uploaded Provenance Actions
personagent-1.5.0.tar.gz 2.6 MB With provenance Details for personagent-1.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 5.3 MB

Release files / personagent-1.5.0.tar.gz

Download URL personagent-1.5.0.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
80563415987012daae24d88bf0aaa080f84cdc2e5942f0772df526b5f01c4923
BLAKE2b-256 checksum
How to use checksums
428854a86b5d35af7813d91991fc9ad4afa35d86bc56af299618c36278116afd
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 16, 2026.

Transparency log

Release files / personagent-1.5.0-py3-none-any.whl

Download URL personagent-1.5.0-py3-none-any.whl
Size 2.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
864d81d59498dd6d759f7a7898f683d934a84af05a6b6c39285619502fc39ec0
BLAKE2b-256 checksum
How to use checksums
ceb22500d29e570951970c129c5c7601102796109f0dbdce7800d8750bcb839c
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 16, 2026.

Transparency log

Security for personagent 1.5.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.

Select from 2 files

Attestation for personagent-1.5.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 16, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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