Repository navigation
feat: add coderd_ai_user_budget_override resource - #454
Merged
ssncferreira merged 4 commits intoOct 22, 2026
Merged
Conversation
ssncferreira
force-pushed
the
ssncf/ai-user-budget-override
branch
2 times, most recently
from
October 15, 2026 16:23
4a53442 to
e557846
Compare
ssncferreira
force-pushed
the
ssncf/ai-user-budget-override
branch
from
October 15, 2026 16:26
e557846 to
ed6f583
Compare
ssncferreira
force-pushed
the
ssncf/ai-user-budget-override
branch
from
October 15, 2026 16:27
ed6f583 to
439b34c
Compare
ssncferreira
force-pushed
the
ssncf/ai-user-budget-override
branch
2 times, most recently
from
October 15, 2026 16:49
2751b02 to
65dbcd2
Compare
ssncferreira
marked this pull request as ready for review
October 15, 2026 16:52
ssncferreira
force-pushed
the
ssncf/ai-user-budget-override
branch
from
October 21, 2026 12:32
65dbcd2 to
b9a19d7
Compare
ssncferreira
force-pushed
the
ssncf/ai-user-budget-override
branch
from
October 21, 2026 12:36
b9a19d7 to
4e403f7
Compare
ssncferreira
force-pushed
the
ssncf/ai-user-budget-override
branch
from
October 21, 2026 12:47
f7fe9b2 to
e5d2d0d
Compare
ethanndickson
approved these changes
Oct 22, 2026
Member
|
I merged https://github.com/coder/dogfood/pull/734 today so you could start dogfooding this right now :) |
ssncferreira
added a commit
that referenced
this pull request
Oct 22, 2026
## Description
Adds the `coderd_ai_group_budget` resource, which manages the AI spend
limit that AI Gateway applies to each member of a group
(`/api/v2/groups/{group}/ai/budget`). `coderd_ai_user_budget_override`
follows in #454.
## Changes
- Add `coderd_ai_group_budget` with `group_id` and `spend_limit`,
registered under the "AI Governance" docs subcategory.
- `spend_limit` is in integer micro-units, like `coderd_ai_model_price`,
and is validated against `codersdk.MaxAISpendLimitMicros` at plan time.
- Import by group ID or `<organization-name>/<group-name>`, like
`coderd_group`.
- Add an example, import docs, mock-server plan tests, and an acceptance
test.
Related to AIGOV-682
> [!NOTE]
> Generated by Coder Agents on behalf of @ssncferreira.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds the
coderd_ai_user_budget_overrideresource, which manages an AI spend limit for a single user and the group their spend is attributed to (/api/v2/users/{user}/ai/budget/override). Stacked on #453.Changes
coderd_ai_user_budget_overridewithuser_id,group_id, andspend_limit, registered under the "AI Governance" docs subcategory.spend_limitvalidators and conventions fromcoderd_ai_group_budget, and link the two resources in the docs.coderd_user.Closes AIGOV-682
Note
Generated by Coder Agents on behalf of @ssncferreira.