Tools
Utilities for working with Twilic outside of application code.
Developer tools
| Tool | Description |
|---|---|
| Twilic CLI | Encode, decode, benchmark, and manage AI sessions from the terminal |
| Twilic AI | Record, replay, and inspect LLM / agent runs as .twai sessions |
| Playground | Compare encoded sizes in the browser |
| Examples | Runnable projects — HTTP, WebSocket, telemetry, logs, cache |
| Benchmark | Throughput and size measurements |
Documentation
| Resource | Description |
|---|---|
| API Reference | SDK function signatures and types |
| Integrations | Hono, Express, Fastify, Fetch, Axios |
| Twilic AI | @twilic/ai and adapters |
| Troubleshooting | Common errors and fixes |
| Glossary | Term 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.twaiFull CLI documentation: Twilic CLI.
Current tools use @twilic/core, which targets the v3 wire line. For the current specification, see v3 Reference Profile.