Configure crewai to use AINative's free LLMs + ZeroMemory — no OpenAI key needed.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crewai_ainative-0.1.0.tar.gz.
File metadata
- Download URL: crewai_ainative-0.1.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a460f8870e2a90a89640e05493f3644089852a27049b4df83d2164bcd311364
|
|
| MD5 |
2f2861ea9ace9c5dea48c7ef36236af4
|
|
| BLAKE2b-256 |
011e97a81575350e44e0d37c131aaef4415b4537bfd091386c2490ebadb43a43
|
File details
Details for the file crewai_ainative-0.1.0-py3-none-any.whl.
File metadata
- Download URL: crewai_ainative-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
683e64fb642ff9ee0591c21f6986754768f20cba5f8b35d955e26caad48a5519
|
|
| MD5 |
d72bd4eb674f0144ff12d568ff2fdb65
|
|
| BLAKE2b-256 |
ec5c501e90d05dbb69eb71e729d6024fe1dde39274b774d17cda97270673f46b
|