Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Self-hosted AI character roleplay system. 100% local, zero data leaks. Your conversations stay on YOUR computer. Open-source Character.AI alternative using Ollama.

License

Notifications You must be signed in to change notification settings

BarbarossaKad/Eliza

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽญ ELIZA - AI Character Sandbox

Version 0.4.1 - A self-hosted AI character creation and roleplay chat system

Named in honor of ELIZA (1966), the first chatbot, and the psychological phenomenon known as the โ€œELIZA effectโ€ - where people attribute human-like feelings to computer programs.

Repository: https://github.com/BarbarossaKad/Eliza


๐Ÿšจ Why ELIZA? Privacy Matters.

Recent data breaches at major AI platforms highlight why self-hosting matters. With ELIZA, your conversations never leave your computer. No cloud. No leaks. Just you and your AI.


๐Ÿ†š Why Choose ELIZA?

Feature ELIZA Character.AI Replika
Privacy โœ… 100% local โŒ Cloud-based โŒ Cloud-based
Data leaks โœ… Impossible โš ๏ธ Risk โš ๏ธ Risk
Cost โœ… Free forever โš ๏ธ Freemium โŒ $70/year
Censorship โœ… None โŒ Filtered โŒ Filtered
Offline mode โœ… Yes โŒ No โŒ No
Open source โœ… Yes โŒ No โŒ No
Your data โœ… Stays on YOUR PC โŒ On their servers โŒ On their servers

  • Character Creation - Design unique AI characters with personalities, backstories, and conversation styles
  • Natural Conversations - Chat with your characters using local LLM models
  • Character Management - Edit, update, and delete characters as needed
  • Multiple Characters - Switch between different characters with dedicated chat tabs
  • Self-Hosted - 100% private, runs entirely on your local machine
  • Multi-Backend Support - Works with Ollama, LM Studio, or Text Generation WebUI
  • Network Access - Use from any device on your local network (PC, phone, tablet)
  • Persistent Storage - All characters and conversations saved locally

๐Ÿ“ธ Screenshots

(Add your screenshots here when ready)


๐Ÿš€ Quick Start

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/BarbarossaKad/Eliza.git
    cd Eliza
  2. Install dependencies:

    pip install gradio requests pillow
  3. Install and configure Ollama (recommended):

    # Install from https://ollama.ai
    # Then pull a model:
    ollama pull mistral  # Recommended for roleplay
    # or
    ollama pull llama3.2  # Good alternative
  4. Run ELIZA:

    python Eliza_v0.4.1.py
  5. Open in browser:


๐Ÿ“– Usage Guide

Creating Your First Character

  1. Go to โ€œโž• New Characterโ€ tab
  2. Fill in character details:
  • Name: Characterโ€™s name (e.g., โ€œSarah Chenโ€)
  • Personality: Detailed traits and behaviors
  • Backstory: Background and history
  • Appearance: Physical description (optional)
  • Example Dialogue: Sample conversation showing their style
  1. Click โ€œโœจ Create Characterโ€
  2. Refresh the page - your character appears as a new tab!

Chatting with Characters

  1. Click the characterโ€™s tab (e.g., โ€œ๐Ÿ‘ค Sarahโ€)
  2. Select AI model from dropdown
  3. Adjust settings:
  • Creativity: Higher = more creative responses
  • Length: Max response length
  1. Type message and hit Enter or click โ€œSendโ€

Editing Characters

  1. Go to โ€œ๐Ÿ“‹ Manageโ€ tab
  2. Select character from dropdown
  3. Click โ€œ๐Ÿ“– Load Characterโ€
  4. Edit any fields
  5. Click โ€œ๐Ÿ’พ Save Changesโ€
  6. Refresh page to see updates in character tab

Tips for Better Characters

Good Personality Description:

Witty software engineer in her late 20s. Sarcastic but warm. 
Loves coffee and terrible coding puns. Gets excited about new tech. 
Sometimes overthinks everything. Dry sense of humor.

Good Example Dialogue:

User: How's your day going?
Sarah: Pretty good! Just had my third coffee and I'm only slightly 
vibrating. Fixed a bug that's been haunting me for two days - turns 
out I just needed to actually read the error message. Revolutionary 
concept, I know.

User: Hah! I do that all the time.
Sarah: Right?! Sometimes I think half of programming is just 
remembering to read what the computer is literally telling you.

โš™๏ธ Configuration

Accessing from Other Devices

Default: ELIZA is accessible from any device on your local network.

To restrict to PC only: Edit Eliza_v0.4.1.py, find:

server_name="0.0.0.0",

Change to:

server_name="127.0.0.1",

Recommended AI Models

Model Size Speed Quality Best For
mistral 7B Medium Excellent Roleplay โญ
llama3.1:8b 8B Slower Best Deep conversations
llama3.2 3B Fast Good Quick responses
llama3.2:1b 1B Very Fast Basic Testing only

Install via Ollama:

ollama pull mistral

Performance Tips

  • Use larger models (7B+) for better roleplay
  • Increase creativity slider (0.9-1.2) for more natural responses
  • Write detailed example dialogue - the AI learns from it
  • GPU highly recommended - CPU mode is slow

๐Ÿ—‚๏ธ File Structure

eliza/
โ”œโ”€โ”€ Eliza_v0.3.py           # Main application
โ”œโ”€โ”€ characters/             # Character data (auto-created)
โ”‚   โ”œโ”€โ”€ CharacterName.json        # Character definition
โ”‚   โ””โ”€โ”€ CharacterName_history.json # Chat history
โ””โ”€โ”€ README.md

๐Ÿ”’ Privacy & Security

What ELIZA Does:

โœ… Runs 100% locally on your computer
โœ… No data sent to external servers
โœ… No telemetry or tracking
โœ… All conversations stay on your PC
โœ… Open source - inspect the code yourself

What ELIZA Does NOT Do:

โŒ No cloud storage
โŒ No external API calls (except to your local LLM)
โŒ No analytics
โŒ No data collection

Network Security:

  • By default, accessible on local network only
  • Not exposed to internet unless you port-forward
  • Close the app when not in use to close ports
  • Use server_name="127.0.0.1" for PC-only access

โš ๏ธ Important Notes

Age Restriction

18+ Only - This tool is designed for adult users. You are responsible for all content created.

Content Responsibility

  • You control all AI models - ELIZA does not include any AI models
  • You are responsible for all generated content
  • Use appropriate models for your use case
  • Configure content filters as needed for your situation

Legal Disclaimer

This software is a tool/platform. All AI models and generated content are provided and controlled by the user. The developers are not responsible for how this tool is used or what content is generated.


๐Ÿ› ๏ธ Troubleshooting

โ€œNo LLM backend detectedโ€

Solution: Install and start Ollama, then click โ€œ๐Ÿ”„ Refresh & Update All Dropdownsโ€ in Setup tab.

Character not appearing after creation

Solution: Refresh the browser page (F5) to see the new character tab.

Slow responses (30+ seconds)

Solutions:

  • Use a smaller model (llama3.2 instead of llama3.1:8b)
  • Ensure you have a GPU (CPU mode is very slow)
  • Reduce โ€œResponse Lengthโ€ slider
  • Check Task Manager - make sure Ollama is using GPU

Character keeps saying โ€œHow can I help?โ€

Solutions:

  • Use larger model (mistral 7B or llama3.1:8b)
  • Add detailed example dialogue showing natural conversation
  • Increase creativity slider to 1.0+
  • Avoid assistant-like personality descriptions

Model dropdown empty

Solution:

  1. Make sure Ollama is running (ollama list in terminal)
  2. Go to Setup tab
  3. Click โ€œ๐Ÿ”„ Refresh & Update All Dropdownsโ€

๐Ÿšง Roadmap

v0.4 (Planned)

  • Image generation integration (ComfyUI/A1111)
  • Character portrait auto-generation
  • Voice input/output (TTS/STT)
  • Better conversation memory

v0.5 (Future)

  • Multi-character conversations
  • Character sharing/import system
  • Advanced prompt engineering tools
  • Mobile app version

v1.0 (Long-term)

  • Steam Workshop integration
  • Native desktop app (Godot)
  • Cloud sync (optional)
  • Plugin system

๐Ÿค Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

Areas needing help:

  • Better UI/UX design
  • Additional LLM backend support
  • Documentation improvements
  • Bug fixes

๐Ÿ“œ License

[Choose your license - MIT, GPL, etc.]

This project is provided as-is with no warranties. Use at your own risk.


๐Ÿ™ Credits

Inspired by:

  • ELIZA (1966) by Joseph Weizenbaum
  • Character.AI
  • Tavern AI / SillyTavern

Built with:

  • Gradio - Web UI framework
  • Ollama - Local LLM runtime
  • Python 3.10+

Special thanks to:

  • The open-source AI community
  • Everyone building and sharing local AI tools

๐Ÿ“ž Support


โš–๏ธ Disclaimer

ELIZA is a tool for creative writing and entertainment purposes.

  • Not intended for therapy, counseling, or medical advice
  • AI-generated content may be inaccurate or inappropriate
  • Users must be 18+ or legal age in their jurisdiction
  • You are responsible for compliance with local laws
  • No warranty or guarantee of any kind is provided

The ELIZA effect is real - remember youโ€™re chatting with an AI, not a person.


Version: 0.4.1
Last Updated: October 2025
Requires: Python 3.10+, Ollama (or compatible LLM backend)


Made with โค๏ธ for the local AI community

โญ Star on GitHub if you find this useful!i

About

Self-hosted AI character roleplay system. 100% local, zero data leaks. Your conversations stay on YOUR computer. Open-source Character.AI alternative using Ollama.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published