Skip to main content

Prerequisites

Before you start, you need:

Step 1: Install the SDK

Install the Moda SDK along with your LLM provider’s client library:

Step 2: Make your first request

Replace YOUR_MODA_API_KEY and your provider API key with your actual keys.
You should see the model’s response printed in your terminal. Behind the scenes, Moda has captured the full request and response.

Step 3: Sync your first prompt

Prompt management is code-first. Keep prompts in files, sync versions with the CLI, and render them through the SDK so runtime calls are attributed to the exact prompt version.
Node.js:
Python:
See Prompt Management for the full workflow.

Step 4: Try a different provider

Moda works the same way with Anthropic. Initialize Moda, use the provider client as normal, and Moda captures everything automatically.
For provider-specific features like streaming, tool use, and extended thinking, see the Anthropic and OpenAI guides.

Step 5: View your conversations

After running the code above, open the Moda dashboard to see your conversations. Each LLM call is automatically logged with the full request, response, model, and token usage.

Troubleshooting

What is next?

Ingestion overview

See all the ways to send data to Moda, including the Direct API.

Provider guides

Detailed setup for OpenAI, Anthropic, Azure, Bedrock, and more.