Blog · Guides

Connecting Claude Code, Cline, and n8n to Moyra AI in Under 2 Minutes

· Moyra Engineering

Step-by-step configuration for running AI coding agents and workflow automations through your Moyra AI gateway key.

1. Claude Code CLI

Because Moyra supports the native Anthropic /v1/messages protocol, you can point Claude Code directly at Moyra by exporting ANTHROPIC_BASE_URL and ANTHROPIC_API_KEY in your shell.

export ANTHROPIC_BASE_URL="https://moyra.ai.id"
export ANTHROPIC_API_KEY="sk-moyra-your-key"
export ANTHROPIC_MODEL="anthropic/claude-3-5-sonnet-latest"

claude

2. Cline / Continue in VS Code

In Cline settings, select 'OpenAI Compatible' as the API Provider, set the Base URL to https://moyra.ai.id/v1, paste your Moyra API key, and enter any model ID from the catalog (such as anthropic/claude-3-5-sonnet-latest or deepseek/deepseek-chat).

3. n8n AI Agent workflows

In your n8n OpenAI credentials, override the Base URL to https://moyra.ai.id/v1. Tip: create a dedicated API key in Moyra with the 'Budget models' preset so high-frequency n8n webhook executions can only call economical models.