{"id":29857128,"url":"https://github.com/h1ddenpr0cess20/ollamarama-matrix","last_synced_at":"2025-07-30T00:38:05.192Z","repository":{"id":212606554,"uuid":"731891138","full_name":"h1ddenpr0cess20/ollamarama-matrix","owner":"h1ddenpr0cess20","description":"AI chatbot for Matrix with infinite personalties, using ollama","archived":false,"fork":false,"pushed_at":"2025-07-10T05:49:24.000Z","size":140,"stargazers_count":48,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-10T08:48:37.716Z","etag":null,"topics":["ai","chatbot","matrix","matrix-nio","ollama"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/h1ddenpr0cess20.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-15T05:55:33.000Z","updated_at":"2025-07-10T05:54:25.000Z","dependencies_parsed_at":"2024-03-15T04:23:00.024Z","dependency_job_id":"a05dc906-78b2-49a8-810d-6fa6b3656e09","html_url":"https://github.com/h1ddenpr0cess20/ollamarama-matrix","commit_stats":null,"previous_names":["h1ddenpr0cess20/ollamarama-matrix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/h1ddenpr0cess20/ollamarama-matrix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h1ddenpr0cess20%2Follamarama-matrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h1ddenpr0cess20%2Follamarama-matrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h1ddenpr0cess20%2Follamarama-matrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h1ddenpr0cess20%2Follamarama-matrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h1ddenpr0cess20","download_url":"https://codeload.github.com/h1ddenpr0cess20/ollamarama-matrix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h1ddenpr0cess20%2Follamarama-matrix/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267785976,"owners_count":24144124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","chatbot","matrix","matrix-nio","ollama"],"created_at":"2025-07-30T00:38:03.182Z","updated_at":"2025-07-30T00:38:05.175Z","avatar_url":"https://github.com/h1ddenpr0cess20.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ollamarama-matrix\n\n[![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)\n[![Python 3.7+](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/)\n[![Matrix Protocol](https://img.shields.io/badge/chat-Matrix-green.svg)](https://matrix.org/)\n[![Ollama](https://img.shields.io/badge/AI-Ollama-orange.svg)](https://ollama.com/)\n[![GitHub](https://img.shields.io/github/stars/h1ddenpr0cess20/ollamarama-matrix?style=social)](https://github.com/h1ddenpr0cess20/ollamarama-matrix)\n\nOllamarama is a powerful AI chatbot for the [Matrix](https://matrix.org/) chat protocol powered by [Ollama](https://ollama.com/). Transform your Matrix channels with an AI that can roleplay as virtually anything you can imagine.\n\n## ✨ Features\n\n- 🎭 **Dynamic Personalities**: Switch between different AI personalities on the fly\n- 👥 **Per-User Chat History**: Each user maintains their own conversation context\n- 🔒 **Channel Isolation**: Conversations are separated by channel and user\n- 🤝 **Collaborative Mode**: Users can interact with each other's chat histories\n- 🛠️ **Admin Controls**: Model switching and global reset capabilities\n- 🎯 **Custom Prompts**: Use your own system prompts for specialized interactions\n\n## 🌟 Related Projects\n\n- 💬 **IRC Version**: [ollamarama-irc](https://github.com/h1ddenpr0cess20/ollamarama-irc)\n- 🖥️ **Terminal Version**: [ollamarama](https://github.com/h1ddenpr0cess20/ollamarama)\n\n## 🚀 Quick Start\n\n### Prerequisites\n\nInstall and familiarize yourself with [Ollama](https://ollama.com/) to run local LLMs.\n\n```bash\ncurl https://ollama.com/install.sh | sh\n```\n\n### 1. Install AI Models\n\nDownload the models you want to use from the [Ollama library](https://ollama.com/library).\n\n**🎯 Recommended model:**\n```bash\nollama pull qwen3\n```\n\n\n### 2. Install Dependencies\n\n```bash\npip install -r requirements.txt\n```\nThis installs `matrix-nio` with encryption support so the bot can work in encrypted rooms.\n\n### 3. Configure Matrix Bot\n\n1. Set up a [Matrix account](https://app.element.io/) for your bot\n2. Get your server URL, username, and password\n3. Update the `config.json` file with your credentials:\n\n```json\n{\n    \"matrix\": {\n        \"server\": \"https://matrix.org\",\n        \"username\": \"@your_bot:matrix.org\",\n        \"password\": \"your_password\",\n        \"channels\": [\"#your-channel:matrix.org\"],\n        \"store_path\": \"store\"\n    }\n}\n```\n\n### 4. Run the Bot\n\n```bash\npython ollamarama.py\n```\n\n## 📖 Usage Guide\n\n### Basic Commands\n\n| Command | Description | Example |\n|---------|-------------|---------|\n| `.ai \u003cmessage\u003e` or `botname: \u003cmessage\u003e` | Basic chat with the AI | `.ai Hello there!` |\n| `.x \u003cuser\u003e \u003cmessage\u003e` | Talk to another user's chat history | `.x Alice What did we discuss?` |\n| `.persona \u003cpersonality\u003e` | Change AI personality | `.persona helpful librarian` |\n| `.custom \u003cprompt\u003e` | Use custom system prompt | `.custom You are a coding expert` |\n| `.reset` | Clear history, reset to default personality | `.reset` |\n| `.stock` | Clear history, use without system prompt | `.stock` |\n\n### 👑 Admin Commands\n\n| Command | Description | Example |\n|---------|-------------|---------|\n| `.model [model_name]` | Show/change current model | `.model qwen3` |\n| `.clear` | Reset bot for all users | `.clear` |\n\n### 💡 Pro Tips\n\n- **Personality Examples**: Try `detective`, `pirate`, `shakespeare`, `helpful assistant`, `sarcastic critic`\n- **Collaborative Mode**: Use `.x username` to continue someone else's conversation\n- **Custom Prompts**: Perfect for specialized tasks like code review or creative writing\n\n## Encryption Support\n\n- This bot supports end-to-end encryption (E2E) in Matrix rooms using `matrix-nio[e2e]` and a built-in device verification system.\n- You must have `libolm` installed and available to Python for E2E to work.\n- On Windows, you need to build and install `libolm` from source for encryption support. If you do not need encrypted rooms or have issues with `libolm`, use the files in the `no-e2e/` folder, or run it using Windows Subsystem for Linux (WSL).\n\n## ⚖️ License\n\nThis project is licensed under the **GNU Affero General Public License v3.0 (AGPL-3.0)**. See the [LICENSE](LICENSE) file for details.\n\n## 🤝 Contributing\n\nContributions are welcome! Feel free to:\n- 🐛 Report bugs\n- 💡 Suggest features\n- 🔧 Submit pull requests\n\n## ⭐ Show Your Support\n\nIf you find this project useful, please consider giving it a star on GitHub!\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh1ddenpr0cess20%2Follamarama-matrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh1ddenpr0cess20%2Follamarama-matrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh1ddenpr0cess20%2Follamarama-matrix/lists"}