Skip to content

Agent Settings

Set default agents and models, connect your own ChatGPT or Claude subscription or AI provider API keys, and manage saved prompts and agent instructions

Open Settings in the main menu and choose a section under Agent.

The Agent sections of Settings are where you set up the AI agents for an app. There are four:

SectionWhat it’s for
Agents & ModelsDefault agent, models, and reasoning effort for new threads, plus your own AI subscriptions and keys.
Saved PromptsReusable prompts you can add to a message.
Claude InstructionsThe CLAUDE.md instructions Claude Code reads at the start of each thread.
Codex InstructionsThe AGENTS.md instructions OpenAI Codex reads at the start of each thread.

You need Editor access or higher to change the settings on the Agents & Models section.

The Agents & Models section of Settings

The Agents & Models section sets what a new chat thread starts with. You can still change the agent and model for any thread when you send a message in the Agent tab. Changes save automatically.

SettingWhat it does
Default AI GatewayHow new threads are paid for. Automatic unless you pick one. It can change the agent a new thread uses; see Choosing how a thread is paid for.
Default AgentThe agent selected for new threads: Claude Code or OpenAI Codex.
Default Claude ModelThe model for new Claude Code threads. Auto uses Draftbit’s recommended model for your AI gateway and plan.
Default Codex ModelThe model for new OpenAI Codex threads. Auto uses Draftbit’s recommended model for your AI gateway and plan.
Reasoning effortNext to each default model. How much the model thinks before it answers. The options depend on the model. Each model keeps its own setting.

Auto prefers GPT-6.2 Sol for Codex and Claude Opus 5.5 for Claude Code when your AI gateway and plan include them. Select a model by name to keep using it for new threads. Switch back to Auto to let Draftbit choose again. The Default AI Gateway row shows the model that will start the next thread. Automatic choices can change as models become available, and some models use more credits per run.

Leave Reasoning effort on Use system default unless you have a reason to change it. The menu shows which level the default uses for that model. Higher effort can help with harder changes, but runs take longer and use more tokens.

The models you can pick depend on the agent and on the AI gateway the thread uses (see Choosing how a thread is paid for):

  • Claude Code runs Claude models, such as Claude Fable 5.2, Claude Opus 5.5, Claude Sonnet 5.5, and Claude Haiku 5.5, on Draftbit credits, a Claude subscription, or an Anthropic, Azure, or OpenRouter key.
  • OpenAI Codex runs OpenAI models, including GPT-6.2 Sol and GPT-6.2 Astra. You can use Draftbit credits, a ChatGPT subscription, or an OpenAI, Azure, or OpenRouter key, depending on which models your provider supports.
  • Both agents can also run models from other providers, including DeepSeek, Gemini, GLM, Grok, Kimi, MiMo, MiniMax, Muse Spark, and Qwen, on Draftbit credits or an OpenRouter key.

On the Free plan, Draftbit credits run Codex with most OpenAI models, including GPT-6.2 Sol. GPT-6.2 Astra, GPT-6 Astra, and Claude Code require Standard or above when you use Draftbit credits. Your own subscription or API key runs the models it supports on every plan.

Security Review also starts a new thread using these defaults, including when you launch it from an existing chat. The action becomes available once the settings have loaded and a compatible model is available.

When you start a thread, the AI Gateway menu in the chat composer decides who pays for the model usage:

AI Gateway optionWho pays
Draftbit (Credits)Your organization’s Draftbit credits.
OpenAI ChatGPT or Anthropic ClaudeThe included usage of a subscription you’ve connected.
My OpenRouter Key, My OpenAI Key, My Anthropic Key, My Azure KeyYour own account with that provider, through an API key you’ve connected.

The subscription and key options only appear once you’ve connected them, as described below.

New threads start on the Default AI Gateway picked for the app under Agents & Models, or for every app in the project under Settings › Project Settings. The app’s pick comes first. When neither is set, or the picked gateway isn’t connected, new threads use Automatic: a subscription connected to the app, then an API key added to the app, then a subscription connected to your organization, then an API key added to your organization. When a step has more than one connection, Automatic prefers the one that runs the app’s Default Agent. Automatic uses Draftbit credits only when nothing is connected.

The gateway comes first, then the agent. If the gateway can’t run your Default Agent or model, new threads use an agent and model it can run. For example, with only a ChatGPT subscription connected, new threads use OpenAI Codex even if your Default Agent is Claude Code. Under Default AI Gateway, Agents & Models shows the gateway, agent, and model new threads start with.

Each thread stays on the gateway it started with. Draftbit shows the gateway in chat and in thread history, so you can always tell how a thread is billed.

A thread keeps its agent and gateway, but you can carry its work into a new thread on any agent, model, and gateway you have. In a thread, select the gateway icon next to the model, then choose another gateway. Draftbit summarizes the thread and opens a new one with the summary in the message box and that gateway selected. You can still change the agent, model, or gateway. Edit the summary if you like, then send it.

Draftbit also offers this when a thread can’t go on, or when there’s a cheaper way to keep going:

  • Your Draftbit credits run out and you’ve connected a subscription or API key. See When your credits run out.
  • A subscription reaches its usage limit, ChatGPT needs to be reconnected, or an OpenRouter key reaches its limit. Continue in a new thread selects your next connection in the order above, or Draftbit credits if you have no other. The new thread keeps its agent and model when that connection can run them.
  • The thread’s API key stops working, or its model is no longer available.
  • The thread hasn’t been used in 60 days.
  • A thread on Draftbit credits can move to a Claude or ChatGPT subscription you’ve connected.
  • The thread’s context has expired. Select Summarize and Start New.

You can’t continue a thread while its agent is running or messages are waiting in its queue. When you send, the new thread checks your credits, subscription connection, or API key, as any new thread does.

If you already pay for ChatGPT or Claude, you can connect that subscription and run agent threads on its included usage instead of Draftbit credits. Connecting a subscription works on every Draftbit plan, including Free, where your own AI covers 20 agent runs a week.

Find it on the Agents & Models section, under AI Provider Subscriptions.

AI Provider Subscriptions

ProviderButtonWhat it connects
OpenAI ChatGPTSign in with OpenAIYour ChatGPT plan, for OpenAI Codex threads.
Anthropic ClaudeSign in with ClaudeYour Claude plan (Pro, Max, or Team), for Claude Code threads.

A connection you make here applies to this app only. To connect a subscription once for every app, see Organization-wide AI providers.

OpenAI only accepts the code if device code sign-in is turned on for your account. Before you start, open ChatGPT’s security settings and turn on Enable device code authorization for Codex. On a ChatGPT Business or Enterprise workspace, an admin has to allow device code login in the workspace’s permissions first. If OpenAI keeps asking you to sign in or never accepts the code, check this setting, then start the connection again.

  1. Select Sign in with OpenAI. OpenAI’s sign-in page opens in a new tab. On the card, Step 1 links to the ChatGPT setting above, and Step 2 shows the sign-in link in case the tab didn’t open.

  2. Sign in to the OpenAI account that has your ChatGPT subscription.

  3. When OpenAI asks for a code, enter the one-time code shown under Step 3 on the card. Select the copy button next to it to copy it.

  4. Go back to Draftbit. The card updates by itself once sign-in finishes and shows Connected via OpenAI with your plan, such as ChatGPT Plus.

The code expires after 15 minutes. If it expires, or you change your mind, select Cancel and start again.

ChatGPT Free and Go include three Codex models: GPT-6 Luna, GPT-5.6 Luna, and GPT-5.6 Terra, with low usage limits. On those plans, ChatGPT threads only offer these models, and new threads start on one of them. The card lists them under your plan. If a thread already uses another model, Draftbit asks you to pick one of these before it sends your message. GPT-6.2 Sol and GPT-6.2 Astra are available on eligible paid ChatGPT plans. If you change your ChatGPT plan, select Refresh plan on the card so Draftbit picks up the new plan.

  1. Select Sign in with Claude. The Claude sign-in page opens in a new tab. If it doesn’t, select Open the Claude sign-in page on the card.

  2. Sign in to the Claude account that has your Pro, Max, or Team plan.

  3. After you sign in, Claude shows an Authentication Code that looks like XXXXXXX#YYYYYY. Copy the whole code, including the part after the #.

  4. Back in Draftbit, paste the code into the field under Step 2 and select Submit. The card shows Connected via Claude.

The sign-in expires after 15 minutes. If you paste something that isn’t a complete code, Draftbit asks you to copy the whole code and paste it again. If the attempt expired or Claude rejected the code, Draftbit starts a new sign-in for you. Open the Claude sign-in page again and paste the new code.

The Heads up badge next to Anthropic Claude notes that Claude.ai connectors and Remote Control aren’t available when you use your Claude subscription in Draftbit, and that usage remains subject to Anthropic’s policies. See Claude authentication for more.

Each subscription card shows its current status:

StatusWhat it means
Not connectedNo subscription is connected. Threads can’t use this subscription yet.
Connected via OpenAI or Connected via ClaudeThis app has its own connection. Select Sign out to remove it.
Using organization subscriptionThis app uses the subscription your organization connected. Select Sign in for this app instead to use a different account for this app only.
Reconnect requiredThe provider rejected the connection. Select Reconnect with OpenAI or Reconnect with Claude.
Connected with an API key (not an OpenAI subscription)The agent is signed in with an API key instead of a subscription. Sign in with OpenAI to use your subscription.
Connected with an API key (not a Claude subscription)The agent is signed in with an API key instead of a subscription. Sign in with Claude to use your subscription.

Select OpenAI ChatGPT or Anthropic Claude from AI Gateway when you start a thread. ChatGPT runs OpenAI Codex threads and Claude runs Claude Code threads.

When you select a subscription in the new-thread composer, Draftbit checks its connection before enabling Send. If the connection needs attention, the composer keeps your selected subscription and draft. A spinner beside the provider means the connection is being checked; a green check means it is ready. Hover over or focus the status icon for details. If a subscription check takes longer than 15 seconds, Draftbit stops waiting and shows an amber warning. Select the warning icon to choose Retry or Open settings. To use Draftbit credits instead, select Draftbit (Credits) from AI Gateway yourself.

If a new thread asks you to reconnect your subscription, choose Open settings in the error message. Reconnect the matching provider under AI Provider Subscriptions, then return to your draft and try again. If Draftbit cannot verify the subscription, check the connection in settings before retrying. Your unsent message and attachments stay in the composer.

If a ChatGPT thread shows Reconnect ChatGPT, OpenAI rejected the connection when the run started. Choose Open settings, sign out of the affected ChatGPT connection if it still shows as connected, then sign in again and retry your message. The button opens app Agent settings for an app connection, or organization AI Providers settings for a shared connection if you’re an organization admin or owner. Other editors can ask an organization admin to reconnect the shared subscription or connect their own in app Agent settings.

If a ChatGPT thread says a model isn’t available for this connection, your ChatGPT plan may not include that Codex model. Pick a different model and send your message again, or select View ChatGPT plans to compare plans. To keep the model, continue in a new thread on Draftbit Credits.

If a connected subscription hits its usage limit, the chat shows a message from that provider instead of a generic agent failure. Upgrading your Draftbit plan or buying credits doesn’t raise that limit. Wait for it to reset, or select Continue in a new thread to carry the thread over to Draftbit credits or another gateway.

You can also bring your own AI provider API key. Threads that use your key run on your provider account and bypass Draftbit credits entirely. This works on every plan, including Free, where your own AI covers 20 agent runs a week.

Find it on the Agents & Models section, under AI Provider API Keys.

AI Provider API Keys

ProviderWhere to create a key
OpenAIplatform.openai.com/api-keys
Anthropicconsole.anthropic.com/settings/keys
OpenRouteropenrouter.ai/settings/keys
AzureYour resource’s Keys and Endpoint page in the Azure portal
  1. Paste your key into the field for that provider, such as OpenAI API Key.

  2. Select Verify. Draftbit checks the key with the provider. You can’t save a key until it passes.

  3. Select Save. The row shows Connected and the last four characters of the key.

To replace a key, select Change, then verify and save the new one. To stop using it, select Remove.

When you select Verify, Draftbit tells you what it found:

  • Verified. The key works. For an OpenRouter key with a spending limit, the message also shows how much of the limit is left.
  • Didn’t accept this key. The provider rejected the key. Check that you copied the whole key and that it’s still active.
  • Couldn’t check this key. Draftbit couldn’t get an answer from the provider. Try again in a minute.
  • Spending limit has been reached (OpenRouter). The key works, but threads can’t run on it until you raise the key’s limit in OpenRouter.
  • None of Draftbit’s models are allowed (OpenRouter). The key’s OpenRouter settings block every model Draftbit uses. Change the key’s allowed models or providers in OpenRouter.
  • Model eligibility could not be checked (OpenRouter). The key works, but Draftbit couldn’t confirm which models it allows. Try again later.
  • Couldn’t reach (Azure). Draftbit couldn’t reach that endpoint. Check that you copied the endpoint of the right resource.

An Azure key connects your own Microsoft Foundry or Azure OpenAI resource. Claude models run in Claude Code and OpenAI models run in Codex, both through that one resource. Models from other providers aren’t available on an Azure key.

  • Paste the resource’s endpoint, such as https://my-resource.services.ai.azure.com, into Endpoint, then paste the key. Both are on the resource’s Keys and Endpoint page. Draftbit also accepts Azure Government and Azure China endpoints.
  • Deploy each model you want to use under its default name, such as claude-sonnet-5 or gpt-6-astra. Draftbit uses the model’s name as the deployment name. A thread only needs the deployment for the model you pick.
  • If a model isn’t deployed, the error from Azure appears in the chat.
  • Use a resource just for Draftbit. An Azure key works for everything on its resource, not only the models you deploy for Draftbit.
  • Once a key is connected, choose My OpenAI Key, My Anthropic Key, My OpenRouter Key, or My Azure Key from AI Gateway when you start a thread. The models you can pick depend on the provider.
  • You can mix credit threads and threads on your own key in the same app. Each thread records the gateway it used.
  • Rate limits and model availability come from your provider account, not Draftbit. If a request fails because of provider limits or an expired key, the error appears in the chat.

If your OpenRouter key has no available models, open Agent settings to review the key’s limits or choose another AI gateway. If subagent options cannot load, retry or choose Automatic.

If starting a thread, sending a message, or running a task fails because your OpenRouter key has reached its spending limit, select Open settings in the error message. This opens the app’s Agents & Models settings. Raise the key’s limit in OpenRouter or connect a different key, then retry. Buying Draftbit credits does not increase your OpenRouter key’s limit.

If a key is removed while you’re writing a message, Draftbit keeps your draft and selected gateway. Select the warning icon beside AI Gateway to open Agent settings or Retry the check, or select another gateway before sending.

For more on how this affects billing, see Credits and Using Credits Efficiently.

Instead of connecting subscriptions and keys app by app, you can connect them once for your whole organization. Every app in the organization, including new ones, can use them right away.

Open Organization → AI Providers in the dashboard sidebar. Only organization Owners and Admins can manage this page. Other members see a note asking them to contact an admin, or to set app-level keys in an app’s Agent settings instead.

Organization AI Providers settings

The page has the same two sections as an app’s Agents & Models section:

SectionWhat it does
AI Provider SubscriptionsConnect a ChatGPT or Claude plan once. Every app can start subscription threads on it with no per-app sign-in.
AI Provider API KeysConnect OpenRouter, OpenAI, or Anthropic keys once. Every app can start threads on them that bypass Draftbit credits.

Connecting works the same way as in an app: follow the ChatGPT or Claude steps, or add a key. One difference: here the sign-in page doesn’t open by itself, so you can read the steps first. For ChatGPT, select the link under Step 2, which copies your code and opens OpenAI. For Claude, select Open the Claude sign-in page. A connected subscription shows who connected it and when.

Keep in mind:

  • Anyone with editor access to an app in the organization can use these credentials, and could read them from the app’s sandbox. Connect only subscriptions and keys you’re comfortable sharing with your editors.
  • App-level connections override organization ones. In an app, an organization subscription shows Using organization subscription and an organization key shows Organization key. Select Sign in for this app instead or Override to use a different account for that app.

Disconnecting an organization subscription or key

Section titled “Disconnecting an organization subscription or key”

Select Disconnect next to a subscription and confirm. Apps that were using it lose access the next time they sync with Draftbit, which happens when they start, check their connection, or start a run. Apps with their own sign-in for that provider aren’t affected.

To remove an organization key, select Remove. Apps without their own key stop using it. Apps with their own key aren’t affected.

Open Settings and choose Saved Prompts under Agent.

Saved Prompts are reusable prompts that you can use when sending a message to the agent. They can be used to set the context for the agent’s response or to provide additional instructions for the agent to follow.

Create a new prompt by clicking the New Prompt button.

InputDescription
NameThe name of the prompt.
PromptDescription of the prompt.

Fill in the details for the prompt and click the Save Prompt button.

Edit a saved prompt by clicking the Edit Prompt button.

InputDescription
NameThe name of the prompt.
PromptDescription of the prompt.

Fill in the details for the prompt and click the Update Prompt button.

Delete a saved prompt by clicking the Delete Prompt button.

You can use a saved prompt by clicking the Add Saved Prompt button in the Agent tab.

You can customize the system prompt that Draftbit attaches to each agent when it starts a new chat thread. This is useful for telling the agent about your project’s tech stack, conventions, and key files.

Each agent has its own dedicated instructions file:

AgentFileWhat it controls
ClaudeCLAUDE.mdSystem prompt added to every Claude Code agent thread.
CodexAGENTS.mdSystem prompt added to every OpenAI Codex agent thread.

Open the file for the agent you want to configure, edit it inline, and save. The instructions take effect on the next thread that agent starts. The Instructions Agent sidebar on this page can also help you draft and refine these files conversationally.

  • Focus on providing details the agents need to know about the tech stack, conventions, and key files of your project.
  • Set any conventions or rules you want the agents to follow, for example “always use the existing component library before creating new components”.
  • Don’t include future plans or ideas for the project. This is just base knowledge.
  • Provide only the critical details and aspects of your project. Adding too much information can overwhelm and slow down the agent’s performance, while also driving up cost of each request. Experiment to find the right balance.