Skip to content

Tools ​

Utilities for working with Twilic outside of application code.

Developer tools ​

ToolDescription
Twilic CLIEncode, decode, benchmark, and manage AI sessions from the terminal
Twilic AIRecord, replay, and inspect LLM / agent runs as .twai sessions
PlaygroundCompare encoded sizes in the browser
ExamplesRunnable projects — HTTP, WebSocket, telemetry, logs, cache
BenchmarkThroughput and size measurements

Documentation ​

ResourceDescription
API ReferenceSDK function signatures and types
IntegrationsHono, Express, Fastify, Fetch, Axios
Twilic AI@twilic/ai and adapters
TroubleshootingCommon errors and fixes
GlossaryTerm definitions

CLI quick reference ​

bash
# Encode JSON → Twilic
echo '{"a":1}' | twilic encode

# Decode Twilic → JSON
cat data.twilic | twilic decode --pretty

# Benchmark vs MessagePack, CBOR, BSON, JSON
twilic bench --backend napi

# Inspect a Twilic AI session
twilic ai inspect session.twai

Full CLI documentation: Twilic CLI.

Current tools use @twilic/core, which targets the v3 wire line. For the current specification, see v3 Reference Profile.

Released under the CC-BY-4.0 License.