Registry / llm-agents / sage-ai-cli

sage-ai-cli

JSON →
library1.19.1pypypi✓ verified 79d ago

Sage is a local-first AI coding CLI (like Claude Code) that supports free/open models. Current version 1.19.1. Released regularly on GitHub.

pip install sage-ai-cli
INSTALL
IMPORT
SIG · SAGE-AI-CLI
S
sage-ai-cli
llm-agentspythonv1.19.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SageClient
import sage
from sage import SageClient

Initialize SageClient with API key and generate a response.

from sage import SageClient from os import environ client = SageClient(api_key=environ.get('SAGE_API_KEY', '')) response = client.generate('Explain Python decorators in one sentence.') print(response['text'])
sage --version
Debug
Known issues
breakingVersion 1.19.0 dropped support for Python 3.9; requires >=3.10.
fix
Upgrade Python to 3.10+.
affects: >=1.19.0
deprecatedThe method `SageClient.generate_text()` is deprecated. Use `generate()` instead.
fix
Replace generate_text() with generate() in your code.
affects: >=1.17.0
gotchaAPI key is not required for local models, but if set it overrides local inference. Many users mistakenly set a key when intending to use local models.
fix
Do not set SAGE_API_KEY if you want to use local models; leave it unset.
affects: all
Upgrade
Version history
1.19.1latest on PyPI
Audit
Dependencies
torchoptionalRequired for local model inference
transformersoptionalFor Hugging Face model support
Agent activity
32 hits · last 30 days
node
28
OpenAI (training)
1
Resources
sage-ai-cli — pip install sage-ai-cli · libregistry