{"id":13579391,"url":"https://github.com/kramcat/CharacterAI","last_synced_at":"2025-04-05T20:34:02.140Z","repository":{"id":158234723,"uuid":"633949184","full_name":"kramcat/CharacterAI","owner":"kramcat","description":"Unofficial Python API for character.ai","archived":false,"fork":false,"pushed_at":"2024-05-17T07:54:04.000Z","size":244,"stargazers_count":493,"open_issues_count":32,"forks_count":73,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-03-07T03:48:47.886Z","etag":null,"topics":["api","characterai","client","python","wrapper"],"latest_commit_sha":null,"homepage":"https://docs.kram.cat","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kramcat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"docs/support.rst","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["qiwi.com/n/KRAMCAT"]}},"created_at":"2023-04-28T16:47:25.000Z","updated_at":"2025-03-05T04:27:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"358c343b-8b7c-4325-9417-1fd8f5aea805","html_url":"https://github.com/kramcat/CharacterAI","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kramcat%2FCharacterAI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kramcat%2FCharacterAI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kramcat%2FCharacterAI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kramcat%2FCharacterAI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kramcat","download_url":"https://codeload.github.com/kramcat/CharacterAI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399877,"owners_count":20932876,"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":["api","characterai","client","python","wrapper"],"created_at":"2024-08-01T15:01:38.992Z","updated_at":"2025-04-05T20:33:57.130Z","avatar_url":"https://github.com/kramcat.png","language":"Python","readme":"\u003cimg src=\"https://raw.githubusercontent.com/kramcat/CharacterAI/main/docs/images/full_logo.png\" alt=\"logo\"\u003e\n\n[![Downloads](https://img.shields.io/pepy/dt/characterai?style=flat-square)](https://pepy.tech/project/characterai)\n[![License](https://img.shields.io/pypi/l/characterai?style=flat-square)](https://opensource.org/licenses/MIT)\n[![Stars](https://img.shields.io/github/stars/kramcat/characterai?style=flat-square)](https://github.com/kramcat/characterai)\n[![Discord](https://img.shields.io/discord/1120066151515422772?style=flat-square)](https://discord.com/invite/ZHJe3tXQkf)\n\nWelcome to the documentation for a synchronous/asynchronous unofficial library for CharacterAI using [curl_cff](https://github.com/yifeikong/curl_cffi)\n\n### 💻 Installation\n```bash\npip install git+https://github.com/kramcat/CharacterAI.git\n```\n\n### ⚠️ Warning\nThis version of the library is in alpha version, there may be bugs and errors. The library was developed without the participation of Character AI developers or their knowledge. To work with the library you need to know how to work with [asyncio](https://docs.python.org/3/library/asyncio.html)\n\n### 🔥 Features\n- Supports logging in via email or as a guest\n- Does not use web browsers like: Pypeeter, Playwright, etc.\n- Supports uploading/downloading pictures\n- Has detailed documentation\n- Uses Pydantic\n- Asynchronous\n\n### 📙 Simple Example\nYou need an account to use the library. To find out your token, you must [log in through the library](https://docs.kram.cat/auth.html)\n```python\nfrom characterai import aiocai\nimport asyncio\n\nasync def main():\n    char = input('CHAR ID: ')\n\n    client = aiocai.Client('TOKEN')\n\n    me = await client.get_me()\n\n    async with await client.connect() as chat:\n        new, answer = await chat.new_chat(\n            char, me.id\n        )\n\n        print(f'{answer.name}: {answer.text}')\n        \n        while True:\n            text = input('YOU: ')\n\n            message = await chat.send_message(\n                char, new.chat_id, text\n            )\n\n            print(f'{message.name}: {message.text}')\n\nasyncio.run(main())\n```\n\n### 📚 Documentation\nThe documentation contains all the detailed information about functions and types. If you have any questions, first of all read whether there is an answer in the documentation\n\n**[docs.kram.cat](https://docs.kram.cat)**\n\n### 👥 Community\nIf you have any questions about our library or would like to discuss CharacterAI, LLM, or Neural Networks topics, please visit our Discord channel\n\n**[discord.gg/ZHJe3tXQkf](https://discord.com/invite/ZHJe3tXQkf)**\n\n### 📝 TODO List\n- [ ] Character voice work\n- [ ] Community tab support\n- [ ] Add logging\n- [ ] Group chat support\n- [ ] Improved work with uploading pictures\n\n### 💵 Support\nTON - `EQCSMftGsV4iU2b9H7tuEURIwpcWpF_maw4yknMkVxDPKs6v`\n\u003cbr\u003e BTC - `bc1qghtyl43jd6xr66wwtrxkpe04sglqlwgcp04yl9`\n\u003cbr\u003e ETH - `0x1489B0DDCE07C029040331e4c66F5aA94D7B4d4e`\n\u003cbr\u003e USDT (TRC20) - `TJpvALv9YiL2khFBb7xfWrUDpvL5nYFs8u`\n\nYou can contact me via [Telegram](https://t.me/kramcat) or [Discord](https://discordapp.com/users/480976972277874690) if you need help with parsing services or want to write a library. I can also create bots and userbots for Telegram\n","funding_links":["qiwi.com/n/KRAMCAT"],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkramcat%2FCharacterAI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkramcat%2FCharacterAI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkramcat%2FCharacterAI/lists"}