Skip to content
Haira is under heavy development and not yet production-ready. APIs and syntax may change.
High-level Agentic Instruction & Runtime Architecture

The Programming Language for Agentic AI

Four keywordsOne binaryZero boilerplate

Build production AI agents with Generative UI — in minutes, not months.

curl -fsSL https://haira.dev/install.sh | sh

Works with any LLM provider

OpenAIAnthropicAzure OpenAIOllamaGroqMistral
See It In Action

Four keywords.
That's the whole framework.

provider tool agent workflow — everything you need to build production AI agents.

weather-agent.haira
import "http"

provider openai {
    api_key: env("OPENAI_API_KEY")
    model: "gpt-4o"
}

tool get_weather(city: string) -> string {
    """Get the current weather for a city."""
    resp, err = http.get("https://wttr.in/${city}?format=j1")
    if err != nil { return "Failed to fetch." }
    data = resp.json()
    current = data["current_condition"][0]
    return "${city}: ${current["temp_C"]}°C"
}

agent Assistant {
    provider: openai
    system: "You are a helpful assistant."
    tools: [get_weather]
    memory: conversation(max_turns: 10)
}

@post("/chat")
workflow Chat(message: string) -> stream {
    return Assistant.stream(message)
}

fn main() {
    http.Server([Chat]).listen(8080)
}
1

Provider

Connect to any LLM — OpenAI, Anthropic, Azure, Ollama, or any OpenAI-compatible API. No SDK imports.

2

Tool

Give your agent capabilities. Type-checked functions with compiler-enforced documentation.

3

Agent

Declare an agent with tools, memory, and a system prompt. No class inheritance. No framework magic.

4

Workflow

Expose agents as HTTP endpoints. Streaming, forms, file uploads — all built in. Deploy as a single binary.

Features

Everything you need.
Nothing you don't.

Compiles to a Single Binary

Haira compiles to Go, then to a native binary. No interpreter, no VM, no node_modules. Ship one file, run anywhere.

Agentic by Design

provider, tool, agent, workflow are first-class language keywords — not decorators bolted onto Python classes.

Type-safe at Compile Time

Static types, pattern matching, enums, structs, pipe operator, and error handling. Catch bugs before they reach production.

Built-in Streaming & UI

SSE streaming with -> stream. Every workflow gets an auto-generated chat UI. Rich components via the ARP protocol.

Multi-Agent Handoffs

Route between specialized agents automatically. Front desk to billing to tech — one config field, zero glue code.

Batteries-Included Stdlib

HTTP, JSON, Postgres, Excel, Slack, GitHub, vector search, regex, time, file system — all built in, tree-shaken at compile time.

Generative UI

Your agent renders the interface.

Agents return rich UI components — tables, charts, status cards, confirmations — not just text. No frontend needed.

dashboard.haira
import "ui"

tool show_metrics() -> string {
    """Show system metrics dashboard."""
    ui.status_card(
        title: "API Health",
        value: "99.9%",
        status: "success"
    )
    ui.table(
        headers: ["Service", "Status", "Latency"],
        rows: [
            ["Auth", "Healthy", "12ms"],
            ["DB", "Healthy", "3ms"],
            ["Cache", "Warning", "89ms"],
        ]
    )
    ui.chart(
        type: "line",
        title: "Requests / min",
        data: get_request_data()
    )
    return "Metrics displayed."
}
Agent Response
API Health
99.9% Healthy
ServiceStatusLatency
AuthHealthy12ms
DBHealthy3ms
CacheWarning89ms
Requests / min
ui.status_card()ui.table()ui.chart()ui.key_value()ui.confirm()ui.product_cards()ui.group()
Why Haira?

Replace your entire stack.

One language instead of a fragile tower of frameworks, SDKs, and YAML.

The Old Way
  • Python + LangChain + FastAPI
  • 300+ lines of boilerplate per agent
  • pip install 47 packages
  • Docker + requirements.txt + .env
  • Runtime type errors in production
  • Manual memory management
  • Build a separate frontend
With Haira
  • One .haira file
  • 30 lines for the same agent
  • Zero external dependencies
  • Single binary — copy and run
  • Compile-time type checking
  • Built-in conversation memory
  • Auto-generated UI included
Use Cases

From chatbots to
enterprise workflows.

Internal Tools

Data explorers, admin dashboards, and ops tools with generative UI. Tables, charts, and status cards — rendered by the agent.

Customer Support

Multi-agent handoffs, conversation memory, and session persistence. Route from triage to billing to tech — automatically.

Workflow Automation

Replace n8n, Make, and Zapier with type-safe compiled workflows. Webhooks, triggers, and parallel execution built in.

RAG Pipelines

Vector search, Postgres, and document processing in the standard library. Retrieval-augmented agents without glue code.

DevOps & Incident Response

Agents that check health, query logs, create tickets, and notify teams — all from a single chat interface.

Multi-Provider Agents

GPT-4o for reasoning, Claude for analysis, Ollama for private data — in the same app. Switch with one line.

Start building in seconds.

Install Haira, write your first agent, deploy a binary.

If Haira helps you, consider giving it a star — it means a lot!