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 framework
pip 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
 
# everything
pip 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

ExtraAdds
anthropicClaude models (native adapter)
openaiOpenAI + any OpenAI-compatible endpoint
geminiGoogle Gemini (native adapter)
litellmBedrock, Azure, Vertex, Cohere, Mistral, Groq, …
testpytest + jsonschema for running the suite

JavaScript / TypeScript

To govern a JS/TS agent against the Antraft control plane:

shell
npm install @antraft/guard

From source

shell
git clone https://github.com/AshrafGalibShaik/ANTRAFT
cd ANTRAFT
pip install -e ".[all,test]"
pytest -q