Count AI spend per person and per helper at the gateway

Open
#8 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
go

Research direction

Start with the agent proxy and the model configuration described in docs/admin/ai.md, then trace how helper calls are logged and how javo presents usage. Check how the LLM Serving pack accepts attribution and exposes metering. Done means every helper call is attributed to a person and helper, spend can be viewed for a chosen period, attribution tests pass, and the gateway endpoint is documented.

Written by the indexing model from the issue text.

Description

priority: medium ⚡ type: enhancement 💅🏼

Problem
The proposal says every model call goes through Nebari's gateway and spend is shown per person and per helper. Today javo's agent proxy calls the provider with the admin key, and dailyTokensPerUser explicitly does not apply to it (docs/admin/ai.md, "The coding agent's model"). Token counts are only logged.

Proposal

  • Send agent model calls through the LLM Serving pack's gateway (nebari-dev/llm-serving-pack), identifying the person and the helper on each call.
  • Show spend per person and per helper in javo, from the gateway's metering.
  • Keep the key out of the agent, as today.

Definition of done

  • Every helper model call is visible in the gateway's metering with person and helper.
  • Javo shows spend per person and per helper for a chosen period.
  • Tests for attribution.
  • Docs: configuring the gateway endpoint.
Dominant language
Go
Stars
5
Forks
0
Avg merge
21h 13m
Merged PRs (30d)
53

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nebari-dev/tapas

All issues in nebari-dev/tapas

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.