Bring Your AI
Connect and manage your coding agents
Turn on the coding agents you subscribe to, sign each one in, and set up the profiles your builds run on.
On this page
On the Bring Your AI plan, your apps are built by coding agents running on your own subscriptions. The Coding Agents page is where you turn those agents on, sign them in, and create the profiles that Pipeline Routing uses. Use Our AI workspaces don't see this page, because 1904 supplies and manages their AI.
You need an active paid plan. On a plan without roles, anyone in the workspace can open the page, but only the owner can turn agents on or off, sign them in, and manage profiles. On Team and Enterprise plans, Admins and Builders can make these changes. Product Managers don't see this page; they sign in to a subscription of their own under Your subscriptions, described further down.

Open Coding Agents
Open the account menu at the bottom of the sidebar, choose Settings, then Coding Agents. The same page is the Coding agents section of the Settings menu.
Agents you can connect
- OpenCode: a provider you already use, with the model you choose. It is set up differently from the others; see "Set up OpenCode" below.
- Claude: your Claude Pro or Max subscription.
- Codex: your OpenAI Codex access.
- Grok (xAI): your SuperGrok or X Premium+ subscription.
- Google Antigravity: Google's AI coding agent, connected over the Agent Client Protocol via
agy acp. Sign in with your Google account, or use a Gemini API key. See "Set up Google Antigravity" below. - GLM (Z.ai), Kimi (Moonshot) and MiniMax: each uses that provider's coding plan, connected with an API key from your plan.
- Kiro: Kiro's AI coding agent, connected over the Agent Client Protocol via
kiro-cli acp. Sign in with your AWS Builder ID, or use a Kiro API key. See "Set up Kiro" below.
There is no limit on how many agents you turn on. Turning on several gives Pipeline Routing more fallbacks when one subscription runs low.
Sign in an agent
- Turn on the switch next to the agent.
- For Claude, Codex, Grok, Antigravity and Kiro, a panel appears saying the agent needs authentication. Choose one:
- Authenticate in Browser opens the provider's sign-in in a new tab. Finish signing in there. If the provider gives you an access code, paste it into Paste access code here and select Submit. Some providers show a one-time code on the 1904 page instead: enter it on the provider's page, and 1904 finishes on its own once you approve.
- Use Terminal shows the sign-in command to run in the Terminal, such as
claude auth loginorcodex login. Follow the prompts, then refresh the Coding Agents page.
- For GLM, Kimi and MiniMax, the Coding subscription key panel appears instead. Paste the key from your plan and select Save Key.
- Wait for the green Authenticated badge.
A saved key is encrypted, and afterwards the page shows only its last four characters. To change it, paste a new key and select Replace, or select Remove to delete it. If you see Key saved. It will apply once your runtime is reachable., the key is stored and will reach your workspace once it's running again.
To tell sign-ins apart, select the pencil beside an agent's name and type a name for it, such as Personal or Work. Press Enter to save.
Subscription or API key
Each agent row shows which mode its main sign-in uses: Subscription or API key. Subscription mode uses the agent's own sign-in: 1904 runs the CLI's login command and never reads, copies or stores its tokens. API-key mode uses a key you save as an additional connection (see below). The key is encrypted, shown only as its last four characters, and given only to that task's agent as the variable its CLI reads. It never goes into a settings file or your shell.
| Agent | Subscription sign-in | API key |
|---|---|---|
| Claude | claude auth login | ANTHROPIC_API_KEY, from the Anthropic Console |
| Codex | codex login | CODEX_API_KEY, from the OpenAI platform |
| Grok (xAI) | grok login --device-auth | XAI_API_KEY, from the xAI console |
| Google Antigravity | agy acp --login | GEMINI_API_KEY, from Google AI Studio |
| Kiro | kiro-cli login --license free --use-device-flow | KIRO_API_KEY, from app.kiro.dev (Kiro Pro and above) |
| OpenCode | opencode auth login | Not offered: OpenCode keeps each provider's key in its own login |
| GLM, Kimi, MiniMax | Not offered: the coding plan is a key | Your coding plan's key |
Each connection has its own empty sign-in folder, so a subscription you signed in to elsewhere never takes priority over a connection's key.
Builds run unattended, so Pipeline Routing never uses a Kiro sign-in: a personal Kiro subscription is for interactive use, and Kiro tasks on the Agents dashboard use your sign-in as usual. Google Antigravity sign-ins and Gemini API key connections can run both Agents tasks and Pipeline Routing builds: see "Use Antigravity for builds" below.
Set up Google Antigravity
- Install. Antigravity's CLI,
agy, comes installed in your workspace. Its version badge shows on the row. - Choose a mode. Turn on Google Antigravity, then either sign in once with your Google account, or add an API key connection with a Gemini API key from Google AI Studio.
- To sign in, select Authenticate in Browser, sign in to Google, then paste the code Google shows into Paste access code here and select Submit. In the Terminal the same sign-in is
agy acp --login. - For an API key, select Add connection, choose API key, paste the key, save, then select Prepare runtime and Install saved API key. 1904 selects the key with Antigravity's own Gemini API key sign-in for each task, so your agy
settings.jsonis never changed. Antigravity readsGEMINI_API_KEYonly:GOOGLE_API_KEYand.envfiles are ignored. Usage is Billed to your Google AI Studio API key.
- To sign in, select Authenticate in Browser, sign in to Google, then paste the code Google shows into Paste access code here and select Submit. In the Terminal the same sign-in is
- Binary. 1904 starts the
agyyour workspace has installed. Tasks start it asagy acp, Antigravity's own Agent Client Protocol server; no community adapter is used. - Select Antigravity. In New Task, choose Google Antigravity, and in Account choose the API key connection if you added one.
Google's Antigravity terms permit running the unmodified Antigravity harness through supported interfaces (agy acp, headless mode, and calling it from another harness) while keeping individual entitlements single-user:
- Official binary, its own sign-in. 1904 launches the unmodified
agy acpand headless CLI and lets it manage its own Google sign-in. 1904 never reads, copies or reuses its tokens. - Agents tasks and builds. Antigravity works in the tasks you run on the Agents dashboard and in Pipeline Routing builds.
- Just you. The sign-in is single-user, so Share this subscription isn't offered for it. Teammates connect their own, or use an API key connection.
- Permissions. The task's Permissions menu uses the same names as the other agents: Plan, Ask, Auto and Full access. Ask asks before edits and commands, and new Antigravity tasks start there. Auto approves edits and the commands Antigravity judges safe, and 1904 answers the rest of the common safe work for it: its own tools (such as recalling notes, opening the preview and the motion tools) and read-only commands Antigravity cannot judge on its own (such as
ls src 2>/dev/null; find . -name page.tsx). Auto still asks before anything that changes or deletes files outside an edit, installs, or runs a program. Plan plans without changing files. With Full access, Antigravity runs in Auto and 1904 allows everything it would still ask about. - Gemini models. Third-party ACP clients get the Gemini models in your Google AI plan only.
An API key connection is billed to your Google AI Studio key.
Use Antigravity for builds
You can route builds in Pipeline Routing through your enabled Google Antigravity sign-in, or through an Antigravity API key connection billed to your Google AI Studio key:
- Add an API key connection with your Gemini API key, select Prepare runtime, then Install saved API key.
- Under the connection, check Model for builds and select Use for builds.
- Open Pipeline Routing and add the connection, shown as its name with (API key), to the phases you want.
The key stays in your workspace: 1904 only tells each build which connection to use. Builds on it are billed to your Google AI Studio key, not to 1904 credits. Stop using for builds takes it out again, and disconnecting the connection does the same.
Read more in Google's Antigravity ACP guide and ACP in editors.
Troubleshoot Antigravity
- Not found. In the Terminal, run
which agy. If it prints nothing, Antigravity isn't installed in this workspace yet; it is added with the next workspace update. - No ACP. Run
agy acp --help. If it reports an unknown command, update the Antigravity CLI to a version with ACP support. - API key not used. The key must be a Gemini API key saved on an API key connection, and the task must be started on that connection in Account.
- Slow first reply. A freshly started agy can take a few seconds to authenticate. The first message waits for it, and the usage tile shows Loading usage… until Antigravity answers.
Set up Kiro
- Install. Kiro's CLI,
kiro-cli, comes installed in your workspace and stays up to date on its own. Its version badge shows on the row. - Choose a mode. Turn on Kiro, then either sign in once with your AWS Builder ID, or add an API key connection with a Kiro API key.
- To sign in, select Authenticate in Browser. 1904 shows a one-time code and opens AWS's device page: enter the code there and approve, and 1904 finishes on its own. In the Terminal the same sign-in is
kiro-cli login --license free --use-device-flow. - For an API key, create one in the API Keys section at app.kiro.dev. API keys need Kiro Pro, Pro+, Pro Max or Power, and the credits they use come out of your Kiro subscription. Select Add connection, choose API key, paste the key, save, then select Prepare runtime and Install saved API key. A Kiro sign-in normally takes priority over a key, so each task on the key gets the connection's own empty Kiro data folder and runs on the key.
- To sign in, select Authenticate in Browser. 1904 shows a one-time code and opens AWS's device page: enter the code there and approve, and 1904 finishes on its own. In the Terminal the same sign-in is
- Binary. Tasks start the installed
kiro-cliaskiro-cli acp, Kiro's own Agent Client Protocol server. - Select Kiro. In New Task, choose Kiro, and in Account choose the API key connection if you added one. New Task has no model list for Kiro: Kiro starts on its own default model.
How a Kiro task works:
- You approve its actions. On its own the agent would run tools on Autopilot. 1904 turns Autopilot off for every one of these tasks, so the agent's actions follow the task's Permissions menu, with the same names as the other agents. Ask, where new tasks start, asks before it edits files or runs commands. Auto lets it read, search and edit files and run read-only commands without asking, and asks before other commands. Full access runs everything without asking.
- Older workspaces. If one of these tasks shows an Agent mode menu with the agent's own modes, such as Default, Spec, Bug Fix and Plan, instead of Permissions, your workspace's runtime hasn't been updated for this yet. The agent still asks before it edits files or runs commands there.
- Just you. A personal Kiro sign-in is single-user, so Share this subscription isn't offered for it. Teammates connect their own, or use an API key connection.
- Your Agents tasks, not builds. Pipeline Routing never uses a Kiro sign-in, because builds run unattended, and Kiro has no Profiles here. A Kiro API key runs your tasks, not builds.
You can still run kiro-cli chat yourself in a Terminal only task.
Read more in Kiro's ACP guide and sign-in and API keys.
Troubleshoot Kiro
- Kiro needs a sign-in. A task that stops because Kiro isn't signed in needs either a sign-in on Coding Agents or an API key connection chosen in Account. In the Terminal,
kiro-cli whoamishows which sign-in Kiro sees. - Google or GitHub Kiro account. 1904 signs in through Kiro's device flow with an AWS Builder ID. If you sign in to Kiro another way, use a Kiro API key connection.
- Credits. The usage tile doesn't show Kiro credits yet. In a Terminal only task, run
kiro-cli chatand type/usage.
Set up OpenCode
Turn on OpenCode and Make OpenCode yours opens in its row, with three steps:
- Provider: search for your provider, select it, and choose Continue with and its name.
- Connect: paste an API key and select Connect account. If the provider offers sign-in instead, select Continue to sign in, finish at Open provider sign-in ↗, and keep the 1904 page open while you do. You can give the account a name.
- Model: pick your default model and select Use this model. You can still change models in each task.
The badge on the row changes from Setup needed to Ready. Your provider decides which models you see and what you are charged. New OpenCode tasks start in Build mode, where it can edit files and run commands; Plan mode is in the task's Agent mode menu. OpenCode's row doesn't expand, so it has no profiles or additional connections to manage here.
Create profiles
A profile is a named setup for one agent: which model it uses and how hard it thinks. Pipeline Routing chains profiles, not agents.
- Select the row of an agent that's turned on and signed in to expand it.
- Under Profiles, select + Add Profile.
- Enter a Profile Name, such as
claude-fast. You can't rename a profile later. - Optionally enter a Model. The hint under the field shows current model IDs for that agent. Leave it empty to use the agent's default model.
- Choose a Reasoning level: Default (none), Low, Medium or High. Codex also offers Extra High (xhigh).
- Select Create Profile.
Use Edit to change a profile's model or reasoning level, or Remove to delete it. Before you remove one, take it out of any Pipeline Routing chain it's in.
Additional connections
When you expand an agent you'll also see Additional connections. There you can keep more than one account for the same agent, such as Personal and Work, each with its own usage ceilings.
- Select Add connection, enter a Connection name, choose Subscription (sign in) or API key, choose the Billing type, and select Save connection. An API key connection shows which variable the agent reads and who bills it.
- Select Prepare runtime on the new connection.
- For a subscription, select Native sign-in, then Start native sign-in, and finish at Open provider sign-in. For an API key, select Install saved API key.
You can then choose the account in New Task: a subscription for Claude or Codex, or an API key for Claude, Codex, Grok or Google Antigravity. API key accounts show (API key) in the list. Every other task uses the agent's main sign-in. Switching between accounts automatically is labelled a setup preview on the page and doesn't happen yet, so the ceilings and Account routing preferences are saved but not acted on.
On Team and Enterprise plans with more than one person, an Admin also sees Share this subscription on a subscription connection. Individual plans are for one person, so they don't have it. When it's on, teammates can use that subscription for new tasks even if they don't have one of their own, and their tasks count toward its usage limits. If a teammate connects their own subscription, 1904 uses theirs by default.
Your own subscription as a Product Manager
Product Managers don't have the Coding Agents page. To run your tasks on your own subscription, open the account menu, choose Settings, then Your subscriptions. Select the Add button for Claude Code or Codex, then Start native sign-in and finish at Open provider sign-in. If the provider shows a code to paste, enter it and select Submit code; otherwise select Check browser sign-in when you're done.
Sign in again repeats the sign-in for a subscription and Remove deletes it. If the page says an Admin needs to turn on Claude Code or Codex, ask an Admin to turn that agent on first.
Status badges and notices
- Authenticated or Not Authenticated shows whether the agent's sign-in works.
- Usage not reporting means the agent is signed in, but its provider isn't reporting usage, so routing can't see how much of your subscription is left.
- Subscription or API key beside the name shows the mode of the agent's main sign-in.
Usage in the sidebar
The usage tile shows one row per agent with its mode (Sub or API key). For a subscription it shows the 5-hour and weekly windows and when they reset; hover a row for detail. Google Antigravity lists Gemini Models and Claude and GPT models separately, each with its own windows. Some accounts have weekly limits only. Every reading says where it came from, such as Reported by Antigravity CLI, and Antigravity's is marked Experimental because Google doesn't document that output.
- Loading usage…: the agent's CLI just started and hasn't answered yet.
- Limits not available: the CLI answered, but your account's quota is hidden or wasn't measured. This never means 0% used.
- Update Antigravity CLI to see usage.: the installed version is too old to report usage.
- Subscription usage not available: an API key has no plan quota. Its tasks' tokens are on Settings, Usage, estimated from local token counts.
Subscription readings refresh in the background about every 12 minutes and keep the last good reading, marked cached, while a refresh fails.
- A version badge shows the agent version installed in your workspace. Updates install on their own while the agent is idle.
- If a sign-in expires, the sidebar shows Sign-in expired with a link back to this page. Sign in again the same way.
Other ways to add models
- To use a model outside your subscriptions, select Add 1904-funded API access at the top of the page. It opens 1904 API profiles on the Credits page, where you can add API access paid from your credit balance. See Plans, billing and credits.
- Builds run on Pipeline Routing. The agent and model for your own coding tasks are chosen separately, when you start a task. See Use the Agents dashboard.
If something goes wrong
- Your plan does not include coding agents. Upgrade to enable. Your workspace isn't on an active paid plan. See Plans, billing and credits.
- Unable to reach the runtime. Please try again. Sign-in runs inside your workspace, so it has to be running. Check Environment Status in Settings > General, wait until it's ready, and try again.
- The browser tab finished but the badge didn't change: go back, choose Use Terminal, and sign in from the Terminal instead.
- 1904 project not configured appears instead of profiles: your workspace setup is incomplete. Contact support.
- A provider's usage window is used up: builds move to the next profile in your Pipeline Routing chain. Add a fallback from another agent so work keeps going.