Skip to content

ainfera-ai/ainfera-langgraph

ainfera-langgraph — LangGraph + Ainfera Routing

LangGraph integration + Ainfera Routing. Build stateful graphs and agents — inference routed through Ainfera with signed audit per turn.

Fleet dogfood: Yavanna (LangGraph runtime).

Quickstart (curl only)

No LangGraph install required — proves the OpenAI-compatible layer graphs call:

git clone https://github.com/ainfera-ai/ainfera-langgraph
cd ainfera-langgraph
./curl-example.sh   # signup → inference → audit verify

Quickstart (LangGraph + ChatOpenAI)

pip install -r requirements.txt
export AINFERA_API_KEY=ai_infera_...  # https://app.ainfera.ai/signup
python main.py

main.py compiles a minimal StateGraph with one node using ChatOpenAI pointed at https://api.ainfera.ai/v1.

LangGraph apps + Ainfera

Use any LangChain ChatOpenAI (or model binding) with:

  • base_url="https://api.ainfera.ai/v1"
  • api_key=os.environ["AINFERA_API_KEY"]

Budget caps, routing, and per-turn receipts are enforced at the Ainfera API — the graph code stays vanilla LangGraph.

What this shows

  • One Agent Card across providers (L1)
  • Routed inference with per-call budget caps (L3)
  • Hash-chained receipts per LLM turn (L4)

Other frameworks

Apache 2.0. © Ainfera Inc. 2026.

About

LangGraph + Ainfera Routing — orchestration graphs with signed audit per node

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors