AI Native Lang

Quickstart

Get started with AINL in under 3 minutes.

Pick the path that fits your setup. Most users start with Option A (plain pip) to explore the CLI, then move to Option B or C to wire it into an agent stack.

Option A · Recommended for 90% of users

Plain pip install

No agent stack required. Install the CLI, write a program, compile it, run it.

1

Install the CLI

terminal
pip install ainativelang

Requires Python 3.10+. Full install docs →

2

Verify it works

terminal
ainl --version
ainl validate --help
3

Write your first program

Create hello.ainl using compact syntax:

hello.ainl (compact syntax — recommended)
# Your first AINL program — compact syntax
adder:
  result = core.ADD 2 3
  out result

AINL also supports a low-level opcode syntax for advanced use. Compact is recommended — 66% fewer tokens, same compiled output.

4

Validate and run

terminal
ainl validate hello.ainl
ainl run hello.ainl

Use --strict for production-mode validation, --json-diagnostics for CI output.

5

Try a real example

terminal
# Clone the repo for demo programs
git clone https://github.com/sbhooley/ainativelang
cd ainativelang
ainl validate demo/monitor_system.lang
ainl run demo/session_budget_enforcer.lang

Option B · OpenClaw users

OpenClaw skill install

One-command AINL setup for OpenClaw — wires env, MCP, ainl-run, and gold-standard crons automatically.

1

Install AINL and run one-command setup (v1.3.0+)

terminal
pip install 'ainativelang[mcp]'

# Preview first:
ainl install openclaw --workspace ~/.openclaw/workspace --dry-run

# Then apply:
ainl install openclaw --workspace ~/.openclaw/workspace

Merges mcpServers.ainl and env.shellEnv into openclaw.json, installs ainl-run, and registers gold-standard crons idempotently.

2

Check health

terminal
ainl status
# Table: workspace, budget, crons, drift, 7d tokens, est. cost avoided

ainl status --summary
# One line for Slack / Telegram / CI

ainl doctor --ainl
# Integration diagnostics for OpenClaw + AINL

# Optional: schedule your own .ainl or open emitted dashboard
# ainl cron add ./workflow.ainl --cron "0 9 * * *"
# ainl dashboard
3

Go deeper (optional)

For cap tuning, env profiles, and the full operator checklist:

OpenClaw gold standard guide →

Option C · ZeroClaw users

ZeroClaw skill install

One-command bootstrap wired for ZeroClaw MCP and skill conventions.

1

Copy the skill

terminal
cp -r skills/zeroclaw/ ~/.zeroclaw/skills/ainl/
2

Run the installer

terminal
cd ~/.zeroclaw/skills/ainl
./install.sh

# Or:
ainl install-mcp --host zeroclaw

Writes mcpServers.ainl into ~/.zeroclaw/mcp.json.

3

Verify

terminal
ainl --version
cat ~/.zeroclaw/mcp.json | grep ainl

Option D · Hermes Agent users

Hermes Agent + AINL

Wire ainl-mcp into Hermes config, then emit agentskills-style bundles for deterministic ainl_run.

1

Install Hermes and AINL with MCP extras

Follow Hermes Agent until hermes works and ~/.hermes/ exists. Then:

terminal
pip install 'ainativelang[mcp]'
ainl install-mcp --host hermes
2

Emit a skill bundle

terminal
ainl compile main.ainl --strict --emit hermes-skill -o ~/.hermes/skills/ainl-imports/my-worker/

Hermes loads skills from ~/.hermes/skills/ and calls ainl_run for deterministic runs.

3

Verify

terminal
ainl doctor --host hermes
grep -A2 mcp_servers ~/.hermes/config.yaml

For Platform Teams

Start with recurring monitors and operational checks where cost compounds quickly. AINL compiles orchestration once, then runs deterministically without recurring LLM orchestration calls for each execution.

Strong fit for routine monitoring, digests, and policy-bound automations where predictable runtime behavior and lower recurring cost matter most.

For Enterprise Audit

Use strict validation before deployment, then enforce policy gates and capture JSONL execution tape during runtime for post-incident review and compliance trails.

This creates a clearer separation between workflow logic, runtime controls, and audit evidence than prompt-loop-only orchestration.

Common issues

  • PEP 668On macOS or managed Linux hosts, pip may refuse to install globally. Use a venv: python3 -m venv .venv && source .venv/bin/activate && pip install ainativelang
  • stale cacheIf you see an old runtime_version, reinstall: pip install -U -e . or recreate the venv.
  • Python 3.9AINL requires Python 3.10+. Check with python3 --version.

More: Full install docs · Open an issue on GitHub