Open History to see the last commit
1import type { ProviderDriverKind } from "@t3tools/contracts";
2import { T } from "gt-react";
3
4/** What turning on usage access lets T3 Code read for this agent. Keep in step with its usage reader. */
5export function UsageAccessReads({ driver }: { readonly driver: ProviderDriverKind }) {
6 switch (driver) {
7 case "claudeAgent":
8 return (
9 <T>
10 Reads its session history, and its sign-in to match limits to your account and ask
11 Anthropic for your reset credits.
12 </T>
13 );
14 case "opencode":
15 return <T>Reads its usage database, and its Go key to ask OpenCode for your Go limits.</T>;
16 case "antigravity":
17 return <T>Reads its conversation history.</T>;
18 case "cursor":
19 return <T>Asks Grok Build for your account's usage, using the API key you gave T3 Code.</T>;
20 default:
21 return <T>Reads its session history.</T>;
22 }
23}