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-compilerimport { 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: 144Documentation Hub
Select a section to dive deeper into Autolang concepts, architecture, and integration APIs:
Introduction
High-level overview of the runtime, capabilities, and system features.
Philosophy & Vision
Why AI execution requires default-deny and low-overhead language sandboxing.
System Architecture
Execution pipeline stages, compiler vs VM duties, and host session lifecycle.
Security Model
Trust boundaries, default-deny, defense-in-depth, and explicit limitations.
Integration Guide
Set up autolang-compiler with Node.js and bind native JS functions.
Native Libraries
Define @native interface declarations and bind custom C++/JS capabilities.
Security & Sandboxing
Configure opcode instruction budgets, file path rules, and domain allowlists.
Language Syntax Guide
Kotlin/TypeScript-inspired syntax, static types, classes, and standard libraries.
Frequently Asked Questions
Quick technical answers covering product identity, governance, and host integration.
Supported Embedding Runtimes
autolang-compiler packageCommunity
Autolang is an open-source project. Contributions, bug reports, and feedback are welcome on GitHub.
