Getting started
Installation
Antraft ships on PyPI. Install the core package, then add the optional extras for the model providers you use.
Requirements
Python 3.10 or newer.
Install
shell
# core frameworkpip install antraft # with a provider (choose what you need)pip install "antraft[anthropic]"pip install "antraft[openai]"pip install "antraft[gemini]"pip install "antraft[litellm]" # 100+ models across every company # everythingpip install "antraft[all]"Note
The base package has no hard dependency on any model SDK — adapters lazy-import their SDK, so you only install what you use.
Optional extras
| Extra | Adds |
|---|---|
anthropic | Claude models (native adapter) |
openai | OpenAI + any OpenAI-compatible endpoint |
gemini | Google Gemini (native adapter) |
litellm | Bedrock, Azure, Vertex, Cohere, Mistral, Groq, … |
test | pytest + jsonschema for running the suite |
JavaScript / TypeScript
To govern a JS/TS agent against the Antraft control plane:
shell
npm install @antraft/guardFrom source
shell
git clone https://github.com/AshrafGalibShaik/ANTRAFTcd ANTRAFTpip install -e ".[all,test]"pytest -q