AutoGen (AG2) model client for JarvisClaw AI API (x402 USDC payments supported)
Project description
autogen-jarvisclaw
AutoGen (AG2) integration for JarvisClaw AI API — 40+ models, pay with USDC.
Install
pip install autogen-jarvisclaw
Usage
Quick Start
from autogen import ConversableAgent
from autogen_jarvisclaw import jarvisclaw_config
assistant = ConversableAgent(
name="assistant",
system_message="You are a helpful AI assistant.",
llm_config={"config_list": [jarvisclaw_config(model="gpt-5.4", api_key="sk-...")]},
)
user = ConversableAgent(
name="user",
human_input_mode="NEVER",
llm_config=False,
)
user.initiate_chat(assistant, message="What's the capital of France?")
Multi-Model Fallback
AutoGen tries models in order. Use multiple JarvisClaw models for resilience:
from autogen_jarvisclaw import jarvisclaw_config_list
configs = jarvisclaw_config_list(
models=["gpt-5.4", "anthropic/claude-sonnet-4.6", "deepseek/deepseek-chat"],
api_key="sk-...",
)
assistant = ConversableAgent(
name="assistant",
llm_config={"config_list": configs},
)
Alternative: Direct Config (no extra package)
Since JarvisClaw is OpenAI-compatible, you can configure directly:
config_list = [{
"model": "gpt-5.4",
"api_key": "sk-...",
"base_url": "https://api.jarvisclaw.ai/v1",
}]
assistant = ConversableAgent(
name="assistant",
llm_config={"config_list": config_list},
)
Multi-Agent Conversation
from autogen import ConversableAgent, GroupChat, GroupChatManager
from autogen_jarvisclaw import jarvisclaw_config
config = {"config_list": [jarvisclaw_config(model="gpt-5.4", api_key="sk-...")]}
researcher = ConversableAgent(name="researcher", system_message="Research topics thoroughly.", llm_config=config)
writer = ConversableAgent(name="writer", system_message="Write clear summaries.", llm_config=config)
critic = ConversableAgent(name="critic", system_message="Review for accuracy.", llm_config=config)
group_chat = GroupChat(agents=[researcher, writer, critic], messages=[], max_round=6)
manager = GroupChatManager(groupchat=group_chat, llm_config=config)
researcher.initiate_chat(manager, message="Research quantum computing breakthroughs in 2026")
Discover Models
from autogen_jarvisclaw import jarvisclaw_config_list
from autogen_jarvisclaw.config import list_models, free_models
# Browse available models (no auth)
all_models = list_models()
cheap = free_models()
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 autogen_jarvisclaw-0.1.0.tar.gz.
File metadata
- Download URL: autogen_jarvisclaw-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed328b715a93bc0eb65cebfcdee46c5857ef4400344c74fe6acbc303a66044b6
|
|
| MD5 |
5d7ff6a46ca0cc5a7a1f4d6ad3e03657
|
|
| BLAKE2b-256 |
dacfa858fc050642657bbd087e11b688d034d657197a8d7cda33df275e0668c6
|
File details
Details for the file autogen_jarvisclaw-0.1.0-py3-none-any.whl.
File metadata
- Download URL: autogen_jarvisclaw-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdb3385085eb26c3353c0e45cf2f12f9baeed71b84da99673f265b782289838f
|
|
| MD5 |
a88c2f2bf5c34af7b58b72c92d92f9fe
|
|
| BLAKE2b-256 |
b5c35d50b95d237ebf8903c7e7a5af822c98a7f885ef2fceb2c6cf5ecfba8372
|