AI Assistance

Bring Your Own Key

Introduction

By default, Assistants run on the free QuantConnect Meta Agent, which requires no setup. Organizations with a paid Assistant Node can instead supply their own API key and run the Assistants on an LLM provider of their choice. Bring your own key when you want to run a specific model, tune how the model reasons, or route the cost through your own provider account.

To configure your own provider, either add an assistant or update an existing one. In the Provider section of the Assistant Configuration, click the Use Your Own Provider option. The following settings become available:

SettingDescription
ProviderThe LLM provider to use.
API TokenThe API key from your provider account.
ModelThe model to run. The list shows the models that the selected provider offers.
Reasoning EffortThe amount of reasoning the model applies before it responds. The default is high.
Max Turns The maximum number of turns the assistant takes per deployment. The default is 100.
Tool ChoiceThe tool selection policy. The default is auto, which lets the model decide when to call tools.

Claude

To run the Assistants on Anthropic's Claude models, follow these steps to get an API key:

  1. Log in or create an account on the Claude Console.
  2. On the API Keys page, click Create Key.
  3. Copy the key and paste it into the API Token field in the assistant's Settings.

OpenAI

To run the Assistants on OpenAI's models, follow these steps to get an API key:

  1. Log in or create an account on the OpenAI Platform.
  2. On the API keys page, click Create new secret key.
  3. Copy the key and paste it into the API Token field in the assistant's Settings.

OpenRouter

To run the Assistants on a model from OpenRouter, follow these steps to get an API key:

  1. Log in or create an account on OpenRouter.
  2. On the Keys page, click Create Key.
  3. Copy the key and paste it into the API Token field in the assistant's Settings.

You can also see our Videos. You can also get in touch with us via Discord.

Did you find this page helpful?

Contribute to the documentation: