Overview
Python SDK for the Axionic platform. Remote inference via the Axionic API, local model loading via TransformerLens, steering vectors, SAE behavior monitoring, runtime policies, model graph inspection, experimental attribution and RAAG wrappers, and a local OpenAI-compatible server. Install from PyPI:Two Modes of Operation
- Remote API
- Local Model
Generation, steering, and SAE operations run on Axionic-hosted GPU infrastructure. No local hardware requirements beyond running the SDK.
- Requires an API key (
ax_+ 48 hex characters) - Credits are deducted per inference call
- Supports all sampling methods including ADS
- Model does not need to fit in local memory
Execution Mode
Control where operations run withset_execution_mode():
| Mode | Behavior |
|---|---|
"auto" (default) | Remote when API or JWT credentials are configured; local only when a model is loaded and no credentials are configured |
"remote" | Always use the Axionic API. Fails if not authenticated. |
"local" | Always use the locally loaded model. Fails if no model loaded. |
ADS and steering perceptrons are remote-only regardless of execution mode. Policy-backed local generation can still run saved policies, constraints, retries, and verifiers when a local model is loaded.