Practical overview
When it fits
Use Axar when a Node.js or TypeScript project needs code-defined LLM agents and workflows with explicit behavior, typed structures and model-provider flexibility.
Who it is for
- TypeScript and JavaScript developers building LLM-powered applications
- Teams developing production-oriented agentic workflows
- Developers who want explicit code-level control over prompts, tools, schemas and validation
Documented uses
- Define an LLM agent with a selected model and system prompt
- Build workflow-oriented agent applications with typed inputs and outputs
- Add tools and dynamic prompts to an agent
- Return structured, validated responses
- Stream model output and monitor agent operations
Requirements & limits
The repository is public and licensed under Apache-2.0. The documented setup uses npm packages and ts-node; the OpenAI example requires an OpenAI API key.
- TypeScript is the required implementation language in the documented examples.
- The framework uses experimental decorators, and the repository states that ts-node is currently required for the shown workflow because tsx does not fully support them.
- Typed schemas and validation are available for agent outputs and tool parameters.
- The documented model integrations include OpenAI, Anthropic and Gemini.
- The framework is designed around explicit code and minimal abstraction rather than a visual builder.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up a first Axar TypeScript agent
Prepare a TypeScript project and create the documented OpenAI-backed example.
Before you start
- Node.js and npm tooling
- TypeScript
- The @axarai/axar, ts-node and typescript packages
- An OpenAI API key for the documented model example
Steps
Create a project directory, initialize it with npm and install @axarai/axar, ts-node and typescript.
Generate a TypeScript configuration and set strict mode, CommonJS modules, an ES2020 target, esModuleInterop, experimental decorators and emitDecoratorMetadata.
Define a TypeScript Agent class with the documented model and system-prompt decorators.
Call the agent’s run method with a text prompt, set the OPENAI_API_KEY environment variable and invoke the file through ts-node.
Expected outcome
A configured TypeScript project containing the documented minimal agent example and its execution command.
Guide limitations
- The repository notes that ts-node is currently required because tsx does not fully support the experimental decorators used by Axar.
- The example uses OpenAI and therefore requires the corresponding API key.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 3 October 2026
- Original website title
- axar-ai/axar · Official homepage title · retained in its source language

