jaxforge (product name Jax Forge, formerly jax-gemini) enables machine learning engineers and researchers to preview, validate, build, train, explore, and export JAX and Flax workflows from natural language across any frontier or local LLM provider.
Unlike blind code-execution wrappers, jaxforge supports an inspect-first gate (preview(), dry_run=True, or approve= callbacks), privacy-preserving DatasetProfile summaries, unified diff edits, metric-guided tree-search exploration (explore()), isolated execution backends, and standalone Python package exports.
Core features
- Inspect-first preview and approval: Generate and AST-validate code with
jf.preview()ordry_run=Trueto inspect source code, unified diffs, and shape estimates before running compute. - Multi-provider LLM routing: Use Google Gemini, OpenAI, Anthropic Claude, OpenRouter, LiteLLM, or local Ollama and vLLM servers through
providerormodel_nameprefixes (such asanthropic:claude-sonnet-4-5,openai:gpt-5, orollama:qwen2.5-coder:32b) with fast/primary routing. - Production JAX workflows: Supports Flax NNX and Equinox modeling, Optax schedules,
jax.shardingdevice meshes, Grain streaming datasets, Orbax and Safetensors checkpoints, andjax.eval_shapechecks. - Pluggable sandbox isolation: Enforces AST allowlists,
WeakKeyDictionarymodule proxies, and confined file I/O acrossthread,subprocess(with memory/CPU limits),docker,e2b, andmodalbackends. - Branching exploration and project export: Compare candidate strategies with
jf.explore()and materialize clean standalone Python packages viajf.export_project(), thejaxforgeCLI, or the MCP server.
Quickstart
Installation
Install jaxforge from PyPI:
pip install jaxforge
Optional extras install provider SDKs, modeling frameworks, sandboxes, or plotting:
pip install "jaxforge[google,openai,anthropic,viz]"
pip install "jaxforge[equinox,grain,safetensors]"
pip install "jaxforge[docker,e2b,modal,mcp]"
Configure an API key for your chosen provider (or point base_url at a local Ollama or vLLM endpoint):
export GEMINI_API_KEY="your-key" # or OPENAI_API_KEY / ANTHROPIC_API_KEY
Preview, approve, train, and export
import jaxforge as jf
import numpy as np
# Switch providers freely: "gemini-3.1-pro", "openai:gpt-5", "anthropic:claude-sonnet-4-5", "ollama:llama3"
jf.config.set({"model_name": "anthropic:claude-sonnet-4-5"})
# Preview code and validation status before running anything
plan = jf.preview("Build a 4-layer MLP for 28x28 digit classification")
print(plan.code)
# Execute after review, or use build/modify/train with interactive approval
model = jf.build("Build a 4-layer MLP for digit classification")
model = jf.modify("Add dropout with rate 0.2 between hidden layers")
X_train = np.random.randn(100, 28, 28, 1).astype(np.float32)
y_train = np.random.randint(0, 10, size=(100,))
# Explore multiple candidate training runs against validation accuracy
experiment = jf.explore(
"Train classifier with cosine learning-rate decay",
dataset=(X_train, y_train),
metric="accuracy",
candidates=3,
)
print("Best accuracy:", experiment.best_candidate.score)
# Export generated modules into a standalone installable repository
jf.export_project("./exported_classifier", package_name="digit_classifier")
CLI and MCP server
jaxforge info
jaxforge devices
jaxforge preview "Build a Flax NNX residual classifier" --export ./out_pkg
jaxforge mcp
See examples/ for end-to-end Python scripts and notebooks.
Documentation
Full hosted documentation is published at wkambale.github.io/jaxforge:
- Quickstart guide: Installation, provider configuration, preview gates, training, and project export.
- API reference: Public functions,
GeneratedPlan, execution backends, CLI, and contrib helpers. - Architecture internals: Multi-provider routing, AST validation, sandbox backends, and memory.
- Security protocol: AST rules, import scoping, runtime proxies, path confinement, and timeout enforcement.
License and contributing
Read the contribution guidelines before opening issues or pull requests. Distributed under the MIT License; see LICENSE for full terms.
Metadata
Release files for jaxforge 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jaxforge-0.2.0.tar.gz | 72.0 kB | With provenance | Details for jaxforge-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jaxforge-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for jaxforge-0.2.0-py3-none-any.whl |
Total release size: 132.0 kB
Release files / jaxforge-0.2.0.tar.gz
| Download URL | jaxforge-0.2.0.tar.gz |
|---|---|
| Size | 72.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca14be98c11b5138079e1b2709e79d548a875eae2ee2e20f41dda572bb439b19
|
|
BLAKE2b-256 checksum How to use checksums |
149125b3a5868d112f1598f00c6565c9760df7273f5c8bac7345097ae8b3753a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / jaxforge-0.2.0-py3-none-any.whl
| Download URL | jaxforge-0.2.0-py3-none-any.whl |
|---|---|
| Size | 60.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1af7179f03206a8fb0f1ca886f5713f2bb6b57a1bd22f5b5c360d084d9b7fca5
|
|
BLAKE2b-256 checksum How to use checksums |
af3b0a0bc34813272eacf51547405f685ca7436ba96e33881ca423c98dc027c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for jaxforge 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for jaxforge-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.