AioCAI
Welcome to the documentation for a synchronous/asynchronous unofficial library for CharacterAI using curl_cffi
⚠️ Warning
This 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
🔥 Features
Supports logging in via email or as a guest
Does not use web browsers like: Pypeeter, Playwright, etc.
Supports uploading/downloading pictures
Has detailed documentation
Uses Pydantic
Asynchronous
📙 Simple Example
from characterai import aiocai
import asyncio
async def main():
char = input('CHAR ID: ')
client = aiocai.Client('TOKEN')
me = await client.get_me()
async with await client.connect() as chat:
new, answer = await chat.new_chat(
char, me.id
)
print(f'{answer.name}: {answer.text}')
while True:
text = input('YOU: ')
message = await chat.send_message(
char, new.chat_id, text
)
print(f'{message.name}: {message.text}')
asyncio.run(main())
👥 Community
If you have any questions about our library or would like to discuss CharacterAI, LLM, or Neural Networks topics, please visit our Discord channel
📝 TODO List
Character voice work
Community tab support
Add logging
Group chat support
Improved work with uploading pictures
💵 Support
Metadata
Release files for characterai 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| characterai-1.0.1.tar.gz | 30.5 kB | Without provenance | Details for characterai-1.0.1.tar.gz |
Release files / characterai-1.0.1.tar.gz
| Download URL | characterai-1.0.1.tar.gz |
|---|---|
| Size | 30.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e404fc4ec6281f8e67aad97cb6cacc1a4c2908d85ab30b28eea0f40d78b7b16
|
|
BLAKE2b-256 checksum How to use checksums |
17299730a6e43ca76342b95a25d6b656be7b2a862e0f413390e4f1c2636a711b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Security for characterai 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.