SDKs and APIs

A3S Code provides Rust, Node.js, and Python SDKs. Install the a3s CLI when you want the terminal application. Treat each registry and GitHub Releases as the source of truth for package versions and release status.

EntryPackage or commandDocumentationUse it for
Terminala3s codeA3S CLIRun a coding agent directly in your terminal
Rusta3s-code-coredocs.rsUse the complete runtime API or extension traits
Node.js@a3s-lab/codenpmSubscribe to async events in a Node.js application
Pythona3s-codePyPIUse synchronous or asynchronous Python APIs

Install

SHELLSCRIPT
# Rust
cargo add a3s-code-core
# Node.js
npm install @a3s-lab/code
# Python
python -m pip install a3s-code

What the SDKs share

All three SDKs use the same session lifecycle, event format, and snapshots. A UI can subscribe to the same AgentEvent / EventEnvelopeV1 stream and resume saved work by session ID.

Start with the API contract, then continue to sessions, tools, workspace backends, and persistence.

When connecting your own infrastructure, you can replace LlmClient, ContextProvider, MemoryStore, SessionStore, Workspace services, tools, permission confirmation, hooks, MCP transports, and graph stores. For UI integration, start with sessions and event streams.