baseten grid setup and see the team’s models in their coding agent.
Manage Grid from the Grid page in the Baseten app. Use Activity and Users to review usage. Choose a team on Routes, Connections, or Guardrails to manage its models, provider keys, or budgets. You can also manage routes, provider connections, and team settings with the Baseten CLI, or manage every setting with the Management API.
Before you begin
- Baseten has enabled Grid for your organization. To request access, Contact us.
- You’re an organization Admin, or an Admin of each team you set up. Team members can use a team’s routes but can’t change them.
- To use Anthropic, OpenAI, or xAI models, you have an API key from that provider. See Choose a provider API key.
Credentials and ownership
Grid uses different credentials for administration, coding agents, and upstream model providers:
Use an authorized Baseten API key for Management API operations. It is separate from the inference-only provider key you add in Connections.
Organize teams and members
Grid uses your organization’s teams. Each team has its own routes, provider connections, harness defaults, and spend limits. Create a team for each group of developers that needs different models or a different budget, such as an infrastructure team with frontier models and a $10,000 team-wide limit, and a go-to-market team with open-weight models only. Invite developers to a team, or sync team membership from your identity provider with SCIM. A developer on several teams picks one with--team when they run setup.
Connect model providers
Skip this step if the team uses only Baseten Model APIs. Connecting a provider supplies its credential; you still need to add its models to the team.- UI
- Baseten CLI
To connect a model provider:
- Sign in to your workspace at app.baseten.co and choose Grid in the sidebar.
- Choose Connections.
- Choose the team from the dropdown.
- Choose Connect for the provider.
- Enter a provider API key restricted to inference, then save. See Choose a provider API key.
Choose a provider API key
Give Grid a key that can run inference but can’t administer your provider account. A service account key isn’t automatically restricted to inference. Check both the account’s permissions and the key’s scope before you add it.
For key creation and permissions, see the Anthropic authentication guide, OpenAI project API key guide, and xAI API key permissions.
Choose team models
Add the models a team’s developers can pick in their coding agent. Mix open-weight models from Model APIs with frontier models from a connected provider, so developers can use a frontier model for the hardest problems and an open-weight model for routine work without leaving their agent.- UI
- Baseten CLI
To add models to a team:
- Sign in to your workspace at app.baseten.co and choose Grid in the sidebar.
- Choose Routes.
- Choose the team from the dropdown.
- Choose Add routes.
- Choose Model APIs or a connected provider.
- Add each model that the team should be able to call.
Add an auto route
An auto route lets a classifier choose among several direct routes for each request. The default route handles a request when the classifier doesn’t choose one. Auto routes can’t contain other auto routes. Add the direct routes the classifier can choose before creating the auto route.- UI
- Baseten CLI
To add an auto route:
- Sign in to your workspace at app.baseten.co and choose Grid in the sidebar.
- Choose Routes.
- Choose the team from the dropdown.
- Choose Add routes.
- Choose Intelligent routing.
- Enter the route’s display name.
- Choose the allowed routes and a default route from that set.
- Choose an available classifier.
- Choose Add intelligent route.
Set harness defaults
Set harness defaults to choose the model each coding agent uses when a developer runs setup without picking one. Claude Code and OpenCode have a primary model and a background model for lightweight tasks; Codex and Pi have a primary model only. To pair a frontier model with a cheaper one, set a frontier route as the primary model and an open-weight Model API as the background model. Developers get the frontier model for their main work, while lightweight background requests go to the open-weight model. Without an override, Baseten recommends routes from the team’s LLM Model APIs. It recommends the highest-ranked Model API for primary work and the least expensive Model API for background work. Connected-provider routes aren’t automatic recommendations, but you can select a compatible provider route as an override.- UI
- Baseten CLI
- Management API
To choose a coding agent’s default models:
- Sign in to your workspace at app.baseten.co and choose Grid in the sidebar.
- Choose Routes.
- Choose the team from the dropdown.
- Under Harness model overrides, expand Harness overrides.
- For Default, choose the primary route for the coding agent.
- For Background, where available, choose the route for lightweight tasks.
- Choose Save changes.
Set spend limits
Set a per-member limit for the team, a team-wide limit, or both. See Set spend limits and view usage for how limits combine and how to change one developer’s limit.Verify the team is ready
Before inviting the whole team to connect, have one member complete developer setup and send a test request. Confirm that:- The intended team models appear in the coding agent’s model picker.
- The selected model returns a response.
- Existing MCP tools still work if the team relies on them.
- Usage appears for that developer after the metering delay, which can be up to 15 minutes.