Examples Runnable no-key and provider-api examples. typescript examples examples website/content-src/templates/examples.md example Examples

Examples

Examples are grouped by what they prove and by whether they need real provider credentials. Start with no-key examples for deterministic protocol, runtime, and generated-package behavior. Use provider-api examples when you want the live provider request path.

Provider API examples

src/examples/summarize.ts

Provider API TypeScript

AxGen OpenAI-compatible API run

Command
npm run example -- ts src/examples/summarize.ts

Env
OPENAI_API_KEY, OPENAI_APIKEY

src/examples/audio-chat.ts voice

Provider API TypeScript

Realtime audio voice stream

Command
npm run example -- ts src/examples/audio-chat.ts voice

Env
OPENAI_API_KEY, OPENAI_APIKEY

src/examples/mcp-client-linear.ts

Provider API TypeScript

Linear MCP Streamable HTTP run

Command
npm run example -- ts src/examples/mcp-client-linear.ts

Env
LINEAR_API_KEY

Agent and RLM examples

src/examples/rlm-context-map.ts

No key TypeScript

AxAgent context-map smoke

Command
npm run example -- ts src/examples/rlm-context-map.ts

Env
None

src/examples/rlm-context-management.ts

No key TypeScript

AxAgent context pressure

Command
npm run example -- ts src/examples/rlm-context-management.ts

Env
None

src/examples/mcp-scripted-tools.ts

No key TypeScript

MCP scripted transport tools

Command
npm run example -- ts src/examples/mcp-scripted-tools.ts

Env
None

src/examples/mcp-stdio-framing.ts

No key TypeScript

MCP stdio JSON-RPC framing

Command
npm run example -- ts src/examples/mcp-stdio-framing.ts

Env
None

How To Read These

  • No key examples use scripted clients, protocol adapters, or generated package tests.
  • Provider API examples make real HTTP calls and list the environment variables they normally need.
  • Generated language examples live under each package’s examples directory.
  • TypeScript examples live under src/examples.

Source

  • Catalog: npm run example -- list / scripts/run-example.mjs
  • Files: src/examples
Docs