{"id":15515804,"url":"https://github.com/mazzz1y/matrix-gpt","last_synced_at":"2025-04-23T03:20:18.509Z","repository":{"id":187219037,"uuid":"676515065","full_name":"mazzz1y/matrix-gpt","owner":"mazzz1y","description":"Chat with ChatGPT directly in your Matrix client","archived":false,"fork":false,"pushed_at":"2024-01-20T11:59:23.000Z","size":73,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T21:32:19.116Z","etag":null,"topics":["chatgpt","dall-e","matrix","openai","synapse","whisper"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mazzz1y.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-08-09T11:26:26.000Z","updated_at":"2024-05-30T14:22:44.000Z","dependencies_parsed_at":"2023-11-22T10:29:18.223Z","dependency_job_id":"c1f6ea0f-ea89-430c-acec-edd1a5c645be","html_url":"https://github.com/mazzz1y/matrix-gpt","commit_stats":null,"previous_names":["mazzz1y/matrix-gpt"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazzz1y%2Fmatrix-gpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazzz1y%2Fmatrix-gpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazzz1y%2Fmatrix-gpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazzz1y%2Fmatrix-gpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mazzz1y","download_url":"https://codeload.github.com/mazzz1y/matrix-gpt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250361079,"owners_count":21417834,"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","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":["chatgpt","dall-e","matrix","openai","synapse","whisper"],"created_at":"2024-10-02T10:04:25.608Z","updated_at":"2025-04-23T03:20:18.490Z","avatar_url":"https://github.com/mazzz1y.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Matrix GPT\n\nMatrix GPT is a Matrix chatbot that uses OpenAI for real-time chatting.\n\n![](./.github/img.png)\n### Docker\n\nRun the Docker container:\n\n```bash\ndocker run -d --name matrix-gpt \\\n  -e MATRIX_PASSWORD=\"matrix password\" \\\n  -e MATRIX_ID=\"matrix id\" \\\n  -e MATRIX_URL=\"matrix server url\" \\\n  -e OPENAI_TOKEN=\"openai token\" \\\n  -e SQLITE_PATH=\"persistent path for sqlite database\"\n  -e USER_IDS=\"allowed user ids\"\n  ghcr.io/mazzz1y/matrix-gpt:latest\n```\n## Configuration\n\nYou can configure GPT Matrix using the following environment variables:\n\n- `SERVER_URL`: The URL to the Matrix homeserver.\n- `USER_ID`: Your Matrix user ID for the bot.\n- `PASSWORD`: The password for your Matrix bot's account.\n- `SQLITE_PATH`: Path to SQLite database for end-to-end encryption.\n- `HISTORY_EXPIRE`: Duration after which chat history expires.\n- `GPT_MODEL`: The OpenAI GPT model being used.\n- `GPT_HISTORY_LIMIT`: Limit for number of chat messages retained in history.\n- `GPT_TIMEOUT`: Duration for OpenAI API timeout.\n- `GPT_MAX_ATTEMPTS`: Maximum number of attempts for GPT API retries.\n- `GPT_USER_IDS`: List of authorized user IDs for the bot.\n\nAlternatively, you can set these options using command-line flags. Run `./matrix-gpt --help` for more\ninformation.\n\n## Usage\n\nThis bot supports the following commands:\n\n- `!image[-natural/-vivid]`: This command will create and return an image based on the text you provide. The default style is \"Natural\".\n- `!reset [text]`: This command will reset the user's history. If you provide text after the `!reset` command, the bot generates a response using GPT, based on this input text.\n- `[text]`: If you simply input text without any specific command, the bot will automatically generate a GPT-based response related to the text provided.\n\n### Additional Notes\n\n- You can use short aliases for a command; for example, `!i` for `!image`, or `!iv` for `!image-vivid`.\n- If you need to stop any ongoing processing, you can just delete your message from the chat`.\n- In case of errors, the bot reacts with a ❌. If you notice this, please check logs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazzz1y%2Fmatrix-gpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmazzz1y%2Fmatrix-gpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazzz1y%2Fmatrix-gpt/lists"}