AutolangDocs

Get Started with Autolang

Autolang is a capability-based execution runtime and VM built for sandboxed execution of AI-generated code. Wrap your host functions, expose explicit capabilities, and execute AI workflows deterministically.

Quick Start (Node.js & TypeScript)

Install the WebAssembly-powered compiler package from npm and execute your first sandboxed script:

npm install autolang-compiler
import { ACompiler } from 'autolang-compiler'; // 1. Initialize WebAssembly VM compiler const compiler = await ACompiler.create(); // 2. Register native capabilities compiler.registerBuiltInLibrary("math_tools", ` @native("square") fun square(x: Int): Int `, { autoImport: true }, { square: (x) => x * x }); // 3. Compile & run AI script safely await compiler.compileAndRun("main.atl", ` @import("math_tools") val result = math_tools.square(12) println(result) `); console.log(compiler.getOutput()); // Outputs: 144

Supported Embedding Runtimes

Node.js (npm / WASM)Supported via autolang-compiler package
C++ Native CLI / LibSupported via C++ runtime headers
Python BindingsPlanned for future releases

Community

Autolang is an open-source project. Contributions, bug reports, and feedback are welcome on GitHub.