ax
The pretty much "official" DSPy framework for Typescript
Ax is a TypeScript-first framework for building AI agent applications with structured generation, multi-turn agents, and workflow orchestration across TypeScript, Python, Java, C++, Go, and Rust. It provides a DSPy-inspired programming model featuring typed signatures for structured output, agent pipelines with sandboxed runtimes, workflow graphs with branching and loops, and GEPA optimization. Developers use Ax to build production LLM applications with provider-agnostic deployment profiles supporting OpenAI, Anthropic, Google Gemini, Meta, DeepSeek, and 40+ other providers through a unified API.
Key Features
Use Cases
- 01Building multi-turn conversational agents with tool use and memory across long contexts
- 02Structured data extraction from documents, emails, or web pages with typed outputs and validation
- 03Workflow automation with branching logic, retry loops, and parallel task execution
- 04Voice and audio applications using batch transcription/synthesis or realtime conversational audio
- 05Multi-language LLM applications requiring the same logic across TypeScript, Python, Go, Rust, Java, or C++
- 06Optimizing prompts and workflows using Pareto-front search across accuracy, cost, and latency metrics
Related Skills
View moresuperpowers
An agentic skills framework & software development methodology that works.
skills
Skills for Real Engineers. Straight from my .agents directory.
skills
Public repository for Agent Skills
ponytail
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
ax — FAQ
What is Ax and what does it do?+
Ax is a multi-language framework for building AI agent applications with typed structured generation, multi-turn agents, workflow orchestration, and optimization. It provides a DSPy-inspired programming model that compiles into TypeScript, Python, Java, C++, Go, and Rust with the same signatures, agents, flows, and optimizers across all languages.
How do I install Ax in TypeScript?+
Install via npm with 'npm install @ax-llm/ax'. For other languages: Python 'pip install axllm', Rust 'cargo add axllm', Go 'go get github.com/ax-llm/ax/packages/go', or Java via Maven Central (dev.axllm:ax).
Which AI providers does Ax support?+
Ax supports 49 deployment profiles including OpenAI, Anthropic, Google Gemini, Meta, Together, Fireworks, DeepSeek, Grok, AWS Bedrock, and any OpenAI-compatible endpoint. The same code works across providers by changing the deployment name.
Do I need API keys to use Ax?+
Yes, you need API keys from your chosen AI provider (e.g., OpenAI, Anthropic, Google). Pass them via the 'apiKey' parameter when creating an 'ai()' instance or set them as environment variables.
Is Ax free and open source?+
Yes, Ax is open source under the Apache 2.0 license. All generated language packages (TypeScript, Python, Java, C++, Go, Rust) are free to use.
What clients or frameworks work with Ax?+
Ax is a standalone framework that runs in Node.js, Bun, Deno, and browsers (TypeScript), plus native runtimes for Python, Java, C++, Go, and Rust. It integrates with MCP servers via AxMCPClient and can be used with the Vercel AI SDK via '@ax-llm/ax-ai-sdk-provider'.
How do I install ax?+
Open the source repository on GitHub and follow its README. ax is a skill — MCP Agents Market links you directly to the official repo.
Is ax free?+
ax is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.