1,500+ AI personas for LLMs and agents.
It's just a JSON file, so you can use it in any environment.
⚡ Installation
pip install ai-personas
🔌 Usage
import ai_personas
print(ai_personas['Linux Terminal']['prompt'])
# => I want you to act as a linux terminal. I will type commands and you will...
Note: Most type checkers will falsely warn ai_personas is not subscriptable because they are incapable of analyzing runtime behavior (where the module is replaced w/ a dictionary for cleaner, direct access). You can safely suppress such warnings using # type: ignore.
💻 Examples
Find personas by keyword:
def find_personas(keyword):
return [
persona for persona, data in ai_personas.items()
if keyword.lower() in data['prompt'].lower()
]
print(find_personas('coach'))
# => ['Interview Preparation Coach', 'Life Coach', ...]
Get prompt for a persona:
def get_prompt(persona):
return ai_personas[persona]['prompt']
print(get_prompt('Food Critic'))
# => I want you to act as a food critic. I will tell you about a restaurant...
Get random personas:
def random_persona(qty=1):
import random
random_personas = random.sample(list(ai_personas), qty)
return random_personas[0] if qty == 1 else random_personas
print(random_persona())
# => e.g. Reverse Prompt Engineer
print(random_persona(10))
# => e.g. ['Internet Trend & Slang Intelligence', 'Tic-Tac-Toe Game', ...]
Get random prompt:
def random_prompt():
import random
return random.choice(list(ai_personas.values()))['prompt']
print(random_prompt())
# e.g. =>
#
# Act as a Node.js Automation Script Developer. You are an expert in creating
# automated scripts using Node.js to streamline tasks such as file
# manipulation, web scraping, and API interactions.
#
# Your task is to:
# - Write efficient Node.js scripts to automate ${taskType}.
# - Ensure the scripts are robust and handle errors gracefully.
# - Use modern JavaScript syntax and best practices.
# ...
Fill variables in template prompts:
def fill_vars_in_template(prompt, vals={}):
import re
return re.sub(r'\$\{(.*?)\}', lambda match: vals.get(match.group(1), match.group(0)), prompt)
prompt = personas['Node.js Automation Script Developer']['prompt']
filled_prompt = fill_vars_in_template(prompt, {'taskType': 'web scraping'})
print(filled_prompt)
# =>
# ...
# Your task is to:
# - Write efficient Node.js scripts to automate web scraping.
# ...
Combine prompts:
mega_prompt = f'''
When I start w/ sh: follow prompt A. When I start w/ win: follow prompt B.
Prompt A: {ai_personas['Linux Terminal']['prompt']}
Prompt B: {ai_personas['Windows Terminal']['prompt']}
'''
print(mega_prompt)
# =>
#
# When I start w/ sh: follow prompt A. When I start w/ win: follow prompt B.
#
# Prompt A: I want you to act as a linux terminal...
#
# Prompt B: I want you to act as a Windows Terminal...
Build system prompt:
system_prompt = ai_personas['Study Planner']['prompt']
messages = [
{'role': 'system', 'content': system_prompt},
{'role': 'user', 'content': 'Create a weekly study plan for calculus'}
]
Use persona w/ an LLM:
from openai import OpenAI
client = OpenAI()
shell_persona = ai_personas['Linux Terminal']['prompt']
shell_cmd = 'echo "UTC time: $(date -u +%H:%M:%S)"'
response = client.chat.completions.create(
model='gpt-5.4',
messages=[
{'role': 'system', 'content': shell_persona},
{'role': 'user', 'content': shell_cmd}
]
)
print(response.choices[0].message.content)
# e.g. => UTC time: 15:23:42
🏛️ License
| Data | CC0 1.0 Universal | Public domain |
| Code | MIT License | © 2026 KudoAI & contributors |
🤖 Related
🤖 ai-personas (Node.js)
Metadata
Release files for ai-personas 1.16.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 |
|---|---|---|---|---|
| ai_personas-1.16.0.tar.gz | 1.2 MB | Without provenance | Details for ai_personas-1.16.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ai_personas-1.16.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for ai_personas-1.16.0-py2.py3-none-any.whl |
Total release size: 2.5 MB
Release files / ai_personas-1.16.0.tar.gz
| Download URL | ai_personas-1.16.0.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1b1542cdcdcb3cccbf05b582e86adc9c012b2078eb383a8821da35858cdad50
|
|
BLAKE2b-256 checksum How to use checksums |
1fdc9e8f8f0bd5ef5e2c29da47432701a9c5cbbd74e6daf485bd224e644675c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.11
|
Release files / ai_personas-1.16.0-py2.py3-none-any.whl
| Download URL | ai_personas-1.16.0-py2.py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2aa738454f088afaf31cb49d2d13c53d73bdf768a9d5f3fc6b8c4a613a817086
|
|
BLAKE2b-256 checksum How to use checksums |
1fa8a74107818a807f0f2f49b9bdfca0b6ee132efa5cade2d4f189f26ce95593
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.11
|
Security for ai-personas 1.16.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.
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.