Skip to content
Python SDK version 0.2.1

Jax Forge for model-agnostic JAX engineering

Design, preview, validate, train, explore, and export Flax NNX and Equinox pipelines from natural language. Route across Gemini, OpenAI, Anthropic, OpenRouter, LiteLLM, or local Ollama endpoints with strict AST and sandbox guarantees.

PyPI version Python Versions License CI

Core capabilities

Jax Forge turns natural language specifications into inspectable JAX artifacts across every stage of experimentation and production packaging.

Workflow

Inspect and preview

Generate AST-checked plans, unified diffs, and DatasetProfile summaries with interactive approval callbacks before any compute runs.

Explore preview and diffs

Providers

Multi-provider routing

Route primary generation and fast repair retries across Gemini, OpenAI, Anthropic Claude, OpenRouter, LiteLLM, or Ollama.

Explore LLM providers

Experimentation

Branching exploration

Search candidate optimization strategies against validation metrics, evaluate shapes cleanly, and configure multi-device sharding.

Explore training and search

Isolation and shipping

Sandboxes and export

Execute inside thread, subprocess, Docker, E2B, or Modal backends and export standalone installable Python packages.

Explore export and backends
Quickstart

Install and preview a model in ten lines

Install jaxforge from PyPI and preview validated Flax NNX source code before executing a single tensor operation:

pip install jaxforge
import jaxforge as jf

jf.config.set({"model_name": "anthropic:claude-sonnet-4-5"})

plan = jf.preview("Build a 4-layer MLP for 28x28 digit classification")
print(plan.code)

model = jf.execute_plan(plan)
jf.export_project("./exported_classifier", package_name="digit_classifier")

Sync, async, CLI, and MCP parity

Switch cleanly between Python sessions, abuild/atrain async wrappers, the jaxforge terminal CLI, and the MCP server with full token and latency accounting via usage_summary().

Security by default

Every plan enforces fail-closed AST validation, intent-scoped import allowlists, WeakKeyDictionary module proxies, symlink-safe path confinement, secret redaction, and non-swallowable execution timeouts.