How to integrate Vercel AI Gateway MCP with Hermes

Connect Hermes to Vercel AI Gateway MCP. List available vercel ai models and specs, generate marketing copy with vercel model, and more using natural language, with authentication handled for you.

Vercel AI Gateway logoVercel AI Gateway
Api Key

Vercel AI Gateway is a unified AI model gateway offering model discovery, inference, generation, and usage APIs. It provides a single, consistent API surface to route and scale model workloads across providers.

22 Tools

Introduction

Hermes is a 24/7 autonomous agent that lives on your computer or server — it remembers what it learns and evolves as your usage grows.

This guide explains the easiest and most robust way to connect your Vercel AI Gateway account to Hermes. You can do this through either Composio Connect CLI or Composio Connect MCP. For personal use we recommend the CLI, but you won't go wrong with MCP either.

Also integrate Vercel AI Gateway with

What is Composio Connect?

Composio Connect is a consumer offering that lets anyone plug 1,500+ applications directly into their agent harness — including Hermes. It can:

  • Search and load tools from relevant toolkits on-demand, reducing context usage.
  • Chain multiple tools to accomplish complex workflows via a remote workbench, without excessive back-and-forth with the LLM.
  • Manage app authentication end-to-end with zero manual overhead.

Integrating Vercel AI Gateway with Hermes

Using Composio Connect CLI

1. Install the Composio CLI

Run the install script directly, or paste https://composio.dev/hermes into your Hermes chat box to have it installed for you.

bash
curl -fsSL https://composio.dev/install | bash
Hermes authenticating with Composio

2. Authenticate

Once the CLI is installed, ask Hermes to authenticate with Composio.

3. Connect to Vercel AI Gateway

Ask your agent to connect to Vercel AI Gateway, or simply request any Vercel AI Gateway-related task. Hermes will prompt you to authenticate and authorize access.

4. Done. You're all set with a new Vercel AI Gateway connection.


Using Composio Connect MCP

1. Get your MCP URL and API Key

Go to dashboard.composio.dev and copy your Connect MCP URL and API key.

Copy MCP URL and API key from Composio dashboard

2. Open the Hermes config file

bash
nano ~/.hermes/config.yaml

3. Add the Composio Connect MCP server

bash
mcp_servers:
  composio:
    url: "https://connect.composio.dev/mcp"
    headers:
      x-consumer-api-key: "YOUR_COMPOSIO_API_KEY"
    connect_timeout: 60
    timeout: 180

Save with Ctrl + O, Enter, then exit with Ctrl + X.

4. Restart your Hermes agent

Once restarted, ask your agent to connect to Vercel AI Gateway or request any Vercel AI Gateway-related task. It will prompt you to authenticate and authorize access.

5. Done!

What is the Vercel AI Gateway MCP server, and what's possible with it?

The Vercel AI Gateway MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Vercel AI Gateway account. It provides structured and secure access so your agent can perform Vercel AI Gateway operations on your behalf.

Way Forward

With Vercel AI Gateway connected, Hermes can now act on your behalf whenever it detects a relevant task or you ask it to.

From here, you can extend Hermes further:

  • Connect more apps: Calendar, Slack, Notion, Linear, and hundreds of others are available through the same Composio Connect setup. Each new integration compounds what Hermes can do for you.
  • Build workflows across tools: Once multiple apps are connected, Hermes can chain actions together — turn an email into a calendar invite, a Slack message into a Linear ticket, or a meeting note into a follow-up draft.
  • Let it learn your patterns: The more you use Hermes, the better it gets at anticipating how you'd handle recurring tasks. Give it feedback on drafts and decisions, and it will adapt.

If you run into trouble or want to share what you've built, join the community or check out the Docs for deeper configuration options.

TOOLS

Supported Tools

Every Vercel AI Gateway action and event your agent gets out of the box.

Compact Response

Compact a long OpenAI Responses conversation into replayable context through Vercel AI Gateway.

Count Message Tokens

Estimate input tokens for Anthropic-format messages, system content, and tools before sending a model request through Vercel AI Gateway.

Create Anthropic Message

Create one non-streaming Anthropic Messages-compatible result through Vercel AI Gateway, with multimodal content, tools, extended thinking, and routing controls.

Create Chat Completion

Create one non-streaming OpenAI Chat Completions-compatible result through Vercel AI Gateway, with multimodal messages, tools, structured output, fallback models, and routing controls.

Create Embeddings

Generate OpenAI-compatible vector embeddings through Vercel AI Gateway for text or token inputs, with optional dimensions and routing controls.

Edit Images

Create edited images from up to 16 HTTPS or base64 data-URL source images and a text instruction.

Evaluate State

Evaluate one shared state against one or more typed choice, score, or boolean questions using an AI Gateway evaluation model.

Generate Images

Generate one or more images from a text prompt through an image-only Vercel AI Gateway model.

Generate Response

Generate one non-streaming OpenAI Responses-compatible result through AI Gateway, with optional instructions, tools, structured output, reasoning, and routing controls.

Generate Speech

Generate spoken audio from text through a Vercel AI Gateway speech model.

Get Credit Balance

Return the connected team's remaining AI Gateway credit balance and lifetime credit usage in USD.

Get Generation

Look up cost, token usage, provider routing, latency, and finish details for one completed Vercel AI Gateway generation.

Get Model

Return detailed capabilities, modalities, limits, tags, and pricing for one exact Gateway model ID.

Get Model Endpoints

Compare provider endpoints serving one Vercel AI Gateway model, including limits, pricing, caching, availability, throughput, and latency.

Get Spend Report

Query aggregated Vercel AI Gateway spend and token usage.

List Model Catalog

List AI Gateway model-to-provider routes and capability tags, with bounded local filtering by model text, provider, or tag.

List TypeSafe Models

List evaluation models available through AI Gateway's TypeSafe-compatible API, including each accepted model name, description, and release date.

Rerank Object Documents

Rank structured object documents by relevance through the Cohere v1 route, using selected rank fields and optionally returning each source document.

Rerank Text Documents

Rerank string documents through the current Cohere v2 compatibility endpoint.

Search Models

Search the AI Gateway model catalog by text, model type, and tags, returning capability and pricing metadata for matching models.

Transcribe Audio

Transcribe base64-encoded recorded audio through a Vercel AI Gateway transcription model.

Evaluate with TypeSafe API

Evaluate one shared state through AI Gateway's TypeSafe-compatible System One API.

FAQ

Frequently asked questions

With a standalone Vercel AI Gateway MCP server, the agents and LLMs can only access a fixed set of Vercel AI Gateway tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Vercel AI Gateway and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Hermes fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Vercel AI Gateway tools.

Yes, absolutely. You can configure which Vercel AI Gateway scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Vercel AI Gateway data and credentials are handled as safely as possible.

Start with Vercel AI Gateway.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Vercel AI Gateway tool your agent needs.Free to start.

Start building