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 AgentThe agent selected for new threads: Claude Code or OpenAI Codex.
Default Claude ModelThe model selected when a new thread uses Claude Code. Claude Opus 5.5 unless you change it.
Default Codex ModelThe model selected when a new thread uses OpenAI Codex. GPT-6.1 Sol unless you change it.
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.

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 Opus 5.5, Claude Sonnet 5.5, and Claude Haiku 5.5, on Draftbit credits, a Claude subscription, or an Anthropic or OpenRouter key.
  • OpenAI Codex runs OpenAI models, such as GPT-6.1 Sol, on Draftbit credits, a ChatGPT subscription, or an OpenAI or OpenRouter key.
  • 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, threads on Draftbit credits run OpenAI Codex with OpenAI models other than GPT-6 Astra. To use Claude Code, GPT-6 Astra, or other models on credits, you need the Standard plan or above. 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 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. 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.

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.

  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, start a new thread and select Draftbit (Credits) from AI Gateway.

If a connected subscription hits its usage limit, the chat shows a message from that provider instead of a generic agent failure.

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
  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.
  • Key invalid. The provider rejected the key. The message includes the provider’s reason. Check that you copied the whole key and that it hasn’t been revoked.
  • 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.
  • Once a key is connected, choose My OpenAI Key, My Anthropic Key, or My OpenRouter 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 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. 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.