crewai-ainative
Configure crewai to use AINative's free LLMs + ZeroMemory. No OpenAI key needed.
Zero setup. Works with Llama 3.3 70B, Qwen3, DeepSeek 4, and Kimi K2 — all free.
Install
pip install crewai-ainative
Quick Start
from crewai_ainative import configure_crew
from crewai import Agent, Task, Crew
configure_crew() # Auto-provisions free API key, sets env vars
agent = Agent(
role="Researcher",
goal="Research AI trends",
backstory="Expert AI researcher with deep knowledge",
)
task = Task(
description="Research the latest trends in multi-agent AI systems",
agent=agent,
expected_output="A summary of key trends",
)
crew = Crew(agents=[agent], tasks=[task])
result = crew.kickoff()
How It Works
crewai-ainative is a companion package (NOT a fork) that configures crewai to use AINative's free, OpenAI-compatible API. It sets the environment variables crewai reads (OPENAI_API_KEY, OPENAI_API_BASE, OPENAI_MODEL_NAME) to route all LLM calls through AINative.
On first use, the package auto-provisions a free API key (72-hour TTL). Claim your account at ainative.studio/signup for permanent access.
Available Models
from crewai_ainative import configure_crew
configure_crew(model="llama") # meta-llama/Llama-3.3-70B-Instruct (default)
configure_crew(model="qwen") # qwen3-coder-flash
configure_crew(model="deepseek") # deepseek-4-flash
configure_crew(model="kimi") # kimi-k2
Or pass any full model ID:
configure_crew(model="meta-llama/Llama-4-Scout-17B-16E-Instruct")
ZeroMemory Integration
Store and recall agent memories across crew runs:
from crewai_ainative import configure_crew, get_memory_config
configure_crew()
memory_config = get_memory_config(entity="my-research-crew")
# memory_config has api_key and memory_api_base for ZeroDB integration
Explicit API Key
configure_crew(api_key="your-key-here")
Or set the environment variable:
export AINATIVE_API_KEY=your-key-here
API Key Resolution Order
- Explicit
api_keyparameter AINATIVE_API_KEYenvironment variableZERODB_API_KEYenvironment variable~/.zerodb/credentials.json(shared with zerodb ecosystem)- Auto-provision via instant-db
Requirements
- Python >= 3.9
- crewai >= 0.30.0
License
MIT
Metadata
Release files for crewai-ainative 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| crewai_ainative-0.1.0.tar.gz | 8.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| crewai_ainative-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.2 kB
Release files / crewai_ainative-0.1.0.tar.gz
| Download URL | crewai_ainative-0.1.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a460f8870e2a90a89640e05493f3644089852a27049b4df83d2164bcd311364
|
|
BLAKE2b-256 checksum How to use checksums |
011e97a81575350e44e0d37c131aaef4415b4537bfd091386c2490ebadb43a43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / crewai_ainative-0.1.0-py3-none-any.whl
| Download URL | crewai_ainative-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
683e64fb642ff9ee0591c21f6986754768f20cba5f8b35d955e26caad48a5519
|
|
BLAKE2b-256 checksum How to use checksums |
ec5c501e90d05dbb69eb71e729d6024fe1dde39274b774d17cda97270673f46b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|