Skip to main content

1,200+ AI personas for LLMs and agents.

Project description


> KudoAI / ai-personas


1,200+ 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

🧠 Contributors



All contributions are very welcome!


🤖 Related

DuckDuckGPT  

Install / Readme / Discuss

GoogleGPT  

Install / Readme / Discuss

🤖 ai-personas (Node.js)

Install / Readme / 🔌 API usage / Discuss

More Python utilities / Discuss / Report bug / Report vulnerability / Back to top ↑

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_personas-1.9.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_personas-1.9.0-py2.py3-none-any.whl (1.1 MB view details)

Uploaded Python 2Python 3

File details

Details for the file ai_personas-1.9.0.tar.gz.

File metadata

  • Download URL: ai_personas-1.9.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ai_personas-1.9.0.tar.gz
Algorithm Hash digest
SHA256 1449ba0a730cf05098fbfc4c8845db5f2f2b875238811b76b6ddc3e7b3a934d5
MD5 8038f978d445e5e613719fe1773182aa
BLAKE2b-256 a1caca9f86e425403b1677d77f0d1c25b2b624ede7992a6e288eee44f826d8be

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_personas-1.9.0.tar.gz:

Publisher: publish-to-pypi-on-new-python-tag.yml on KudoAI/ai-personas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ai_personas-1.9.0-py2.py3-none-any.whl.

File metadata

  • Download URL: ai_personas-1.9.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ai_personas-1.9.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7d6dd3ed0d5b90279f802d29b71c0f34f50dc147497c9d00f59f9fbcf9607396
MD5 27cac923fafaff66ce1072e5b2259b26
BLAKE2b-256 1f72ca1310bb7030ac27dbd8b7ad88156201b71cb937ed2bd79c607df2df6cc8

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_personas-1.9.0-py2.py3-none-any.whl:

Publisher: publish-to-pypi-on-new-python-tag.yml on KudoAI/ai-personas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page