Skip to content

API Keys

Swytchcode offers 2-type of API keys:

  1. MCP server key: Required to run Swytchcode MCP server
  2. Chat API key: Required to run the Q2 interface

Start by navigating to API Keys menu in the top-right corner.

API keys menu

MCP Server Key

  1. Click “New MCP Key” and instantly generate a new key. You can generate upto 3 MCP keys

New MCP Key

  1. Copy the newly generated MCP key to be used in your Swytchcode MCP server

Copy MCP Key

Chat API Key

  1. Click “New Chat Key” to generate a new chat key for the Q2 interface. You can generate only 1 key with your account

New Chat API Key

  1. Chat API key depends on your OpenAI API key. You need to generate one and enter in the input box. Also, you need to select an API library that you need to link with your chat. Click on “Generate Key” to get the new key

Openai api key and library

  1. Copy the key and use it with your Q2 agent interface