SDKs & CLI
ModelRelay provides official SDKs for popular languages and a command-line tool.
Available SDKs
| Language | Package | Install |
|---|---|---|
| TypeScript | @modelrelay/sdk | npm install @modelrelay/sdk |
| Go | sdk-go | go get github.com/modelrelay/sdk-go |
| Rust | modelrelay | modelrelay = "5.12.0" |
| Swift | modelrelay-swift | Swift Package Manager |
CLI
The mrl CLI provides a command-line interface for running agents, testing with mocked tools, and running local agentic tool loops.
brew install modelrelay/tap/mrl
Quick Start
All SDKs follow the same pattern:
- Initialize with your API key
- Use
responses.text()for simple requests - Use
responses.streamTextDeltas()for streaming
See First Request for examples in all three languages.