One-time setup for managed models — no provider keys needed.
# Authenticate with OpenOnion (required first)
co auth
# Optional: Connect your Google account for Gmail & Calendar
co auth googleWhat co auth does:
- Authenticates your agent and saves a secure token
- Token is saved to
~/.co/keys.envasOPENONION_API_KEY - If your project has a
.env, it's updated too .co/config.tomlgainsagent.emailandemail_active = true
What co auth google does:
- Connects your Google account for Gmail Send and Calendar Read
- Opens browser for OAuth authorization
- Saves credentials to
.envfor your agents to use - Running again will switch to a different Google account
- See Google Integration for details
from connectonion import llm_do
response = llm_do("Hello", model="co/gpt-4o")Works across providers:
co/gpt-4o,co/gpt-4o-minico/claude-3-5-sonnet,co/claude-3-5-haikuco/gemini-1.5-pro,co/gemini-1.5-flash
- Missing token? Run
co authagain - Network issue? Try again or check your connection
- Global vs project:
co authprefers local.coif keys exist, otherwise uses~/.co