Openhuman: The Tiny Humans AI That Brings Open Source Personas to Life
Look, we’ve all been there. You’re building a chatbot, a game NPC, or some interactive demo, and you need a realistic human-like persona. But spinning up a full-blown character system is overkill for a prototype, and hardcoded templates feel lifeless. Enter Openhuman—a tiny, open-source project from TinyHumansAI that lets you create and run lightweight human personas using just a prompt and a few configuration lines.
What It Does
Openhuman is a minimalistic Python library that turns a simple text description into a conversational agent with a consistent personality, memory, and behavior. Think of it as a “character-as-a-function” tool. You define a persona (e.g., “a grumpy barista who loves existential philosophy”), and Openhuman wraps it into a callable object that responds to queries while staying in character. Under the hood, it uses small language models and a concise context management system—no massive LLM dependencies required. Check out the repo at github.com/tinyhumansai/openhuman.
Why It’s Cool
What sets Openhuman apart is its simplicity and portability. Instead of wiring up complex RAG pipelines or fine-tuning models, you get a single JSON-like config for a persona. The clever bit: it uses a small, quantized model (think 7B params or less) with a tight context window, so you can run it on a laptop or even a Raspberry Pi. No API keys, no cloud costs.
The memory system is also neat. Each persona gets a short-term “scratchpad” and a long-term “notes” field that persists across conversations. So your grumpy barista remembers that you ordered a black coffee last time and will judge you for ordering a latte now. It’s ideal for prototyping game dialogues, testing UX flows, or adding personality to hackathon projects without the overhead of full-blown agents.
Another standout: the personas are fully programmable. You can define custom behavior triggers, like a “rant mode” or “fact-checking mode”, just by extending the config. It’s like having a tiny, obedient actor in a box.
How to Try It
Getting started is dead simple:
-
Clone the repo:
git clone https://github.com/tinyhumansai/openhuman.git cd openhuman -
Install dependencies (Python 3.10+ recommended):
pip install -r requirements.txt -
Run the example persona:
python examples/grumpy_barista.pyThat will start an interactive session where you chat with the barista. The persona file is just a dictionary—edit it to change the tone, backstory, or even swap the underlying model.
-
(Optional) Use the CLI to create a new persona on the fly:
python -m openhuman.cli --persona "A cheerful librarian who whispers lore about extinct birds"
Want to see a demo without installing? The repo has a few pre-built personas as Python scripts in the examples/ folder.
Final Thoughts
Openhuman isn’t trying to be another LangChain or AutoGPT. It’s a focused, hackable tool for developers who need a quick dose of character in their projects. If you’re building a text-based game, a mental health support bot, or just want to add some flavor to your CLI tools, this is worth a 10-minute play. The codebase is tiny (under 300 lines of core logic), so you can adapt it however you like.
One caveat: it’s early days, and the “human” part is, well, simulated. But for prototyping, it’s surprisingly convincing. Give it a try and see what weird personas you can cook up.
Built by TinyHumansAI. Found via @githubprojects.
Repository: https://github.com/tinyhumansai/openhuman