API for agents: tokens, /api/v1, guardrails, approval
- Scoped bearer tokens (models:read, downloads:create), stored as SHA-256, managed in Settings -> API tokens. Only /api/v1 accepts them; the rest stays OIDC-only. - /api/v1: Hub lookup, library list with the search filters, download requests through the existing add-model/queue path (idempotent), compact job status, disk space. - Guardrails: approval mode (default approve), max size per request, minimum free space incl. reserved bytes, max open agent jobs, author allowlist. Approve/reject in the UI; "requested by" shown and filterable. - docs/api.md (incl. Traefik forward-auth bypass), docs/agent/SKILL.md, DB-backed API tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2532f2f2b3
commit
7b1c8070b3
52 files changed
+4583
-35
No files matched your search
@@ -1,6 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import { BoxesIcon, KeyRoundIcon, LogOutIcon, MonitorIcon, MoonIcon, SunIcon, TagIcon, TagsIcon } from "lucide-react";
|
||||
import { BotIcon, BoxesIcon, KeyRoundIcon, LogOutIcon, MonitorIcon, MoonIcon, SunIcon, TagIcon, TagsIcon } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
import { useTheme } from "next-themes";
|
||||
import { useTransition } from "react";
|
||||
@@ -73,7 +73,11 @@ export function UserMenu({ user, signOutAction }: { user: MenuUser; signOutActio
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem render={<Link href="/settings/api-keys" />}>
|
||||
<KeyRoundIcon />
|
||||
API keys
|
||||
Runtime API keys
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem render={<Link href="/settings/api-tokens" />}>
|
||||
<BotIcon />
|
||||
API tokens
|
||||
</DropdownMenuItem>
|
||||
</DropdownMenuGroup>
|
||||
<DropdownMenuSeparator />
|
||||
|
||||
Reference in new issue
Block a user