Introduction to Autolang
Autolang is a capability-based execution runtime, deterministic scripting language, and custom virtual machine designed specifically for executing AI-generated code.
Overview
When an AI agent executes multi-step workflows, passing control to an unconstrained general-purpose scripting environment exposes unbudgeted CPU, memory, and filesystem access. Autolang acts as a language-level sandbox between the AI agent and your host application systems.
Capability Allowlist
Static Type Pre-validation
Resource Bounded Execution
Low Memory Footprint
Quick Code Example
The host application exposes native capability functions, and the AI agent generates a structured orchestration script to execute them in one local pass:
import { ACompiler } from 'autolang-compiler';
const compiler = await ACompiler.create();
// 1. Host registers explicit capabilities
compiler.registerBuiltInLibrary("crm", `
@native("getCustomers")
fun getCustomers(segment: String): Array<Customer>
`, { autoImport: true }, {
getCustomers: (segment) => db.queryCustomers(segment)
});
// 2. AI script executes securely inside VM sandbox
await compiler.compileAndRun("workflow.atl", `
@import("crm")
val enterpriseList = crm.getCustomers("enterprise")
println(enterpriseList)
`);
console.log(compiler.getOutput());Documentation Map
Explore specific technical guides according to your evaluation and integration needs:
Philosophy & Vision
Design motivation, why Autolang exists, and comparison with container isolation.
System Architecture
Execution pipeline stages, compiler vs VM duties, and host session lifecycle.
Security Model
Trust boundaries, default-deny, defense-in-depth, and scope limitations.
Integration Guide
Installing `autolang-compiler` from npm and binding native Node.js APIs.
Language Guide
Kotlin/TypeScript syntax rules, types, classes, and standard library modules.
Frequently Asked Questions
Quick answers to product identity, governance, and integration queries.
