iblai-vibe-agent-api
Skill222 starsChanged 12 days agoMITView on GitHub
Add the agent API tab (list, add, edit and delete the API keys apps use to call the agent; the secret is shown once) to your Next.js app. Use when the user mentions agent API keys, programmatic access to an agent, creating or revoking an API key, or the API tab. For the REST contract see /iblai-api-token.
- Reads credentials
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- iblai/vibeword for word, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 1
- iblai/vibe★ 222100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository166 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- iblai-vibe-pr-reviewSkill
- iblai-api-agent-accessSkill
- iblai-api-agent-auditSkill
- iblai-api-agent-chatSkill
- iblai-api-agent-createSkill
- iblai-api-agent-datasetSkill
- iblai-api-agent-disclaimerSkill
- iblai-api-agent-embedSkill
- iblai-api-agent-evalSkill
- iblai-api-agent-historySkill
- iblai-api-agent-llmSkill
- iblai-api-agent-mcpSkill
- iblai-api-agent-memorySkill
- iblai-api-agent-privacySkill
- iblai-api-agent-promptSkill
- iblai-api-agent-safetySkill
- iblai-api-agent-sandboxSkill
- iblai-api-agent-sessionSkill
- iblai-api-agent-settingSkill
- iblai-api-agent-skillSkill
- iblai-api-agent-supportSkill
- iblai-api-agent-toolSkill
- iblai-api-agent-voiceSkill
- iblai-api-inferenceSkill
- iblai-api-searchSkill
- iblai-vibe-agent-accessSkill
- iblai-vibe-agent-analyticsSkill
- iblai-vibe-agent-assistantSkill
- iblai-vibe-agent-auditSkill
- iblai-vibe-agent-billingSkill
- iblai-vibe-agent-chat-sidebarSkill
- iblai-vibe-agent-chatSkill
- iblai-vibe-agent-createSkill
- iblai-vibe-agent-datasetSkill
- iblai-vibe-agent-disclaimerSkill
- iblai-vibe-agent-embedSkill
- iblai-vibe-agent-evalsSkill
- iblai-vibe-agent-graderSkill
- iblai-vibe-agent-historySkill
- iblai-vibe-agent-llmSkill
- iblai-vibe-agent-ltiSkill
- iblai-vibe-agent-mcpSkill
- iblai-vibe-agent-memorySkill
- iblai-vibe-agent-privacySkill
- iblai-vibe-agent-promptSkill
- iblai-vibe-agent-safetySkill
- iblai-vibe-agent-sandboxSkill
- iblai-vibe-agent-screenshareSkill
- iblai-vibe-agent-searchSkill
- iblai-vibe-agent-settingSkill
- iblai-vibe-agentSkill
- iblai-vibe-agent-skillsSkill
- iblai-vibe-agent-supportSkill
- iblai-vibe-agent-taskSkill
- iblai-vibe-agent-toolSkill
- iblai-vibe-agent-virtual-machineSkill
- iblai-vibe-agent-voiceSkill
- iblai-vibe-incognitoSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Add the agent API tab -- the API keys an app uses to call the agent from code.
- Very specific: line 59
Look for iblai.env in the project root with PLATFORM, DOMAIN, and TOKEN.
- Very specific: line 112
If your layout already loads /apitokens/ grants into the provider, mount <AgentApiTab /> directly.
- Very specific: line 194
Run /iblai-vibe-ops-test before telling the user the work is ready, and give every page, control and state this skill added its own …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/iblai-vibe-agent-api
Add the agent API tab -- the API keys an app uses to call the agent from
code. Scope: per organization. The tab sits in the agent's settings, but
the keys are the organization's Platform API Tokens (platform_key-scoped):
the same list shows on every agent, and a key works for any agent the key's
owner can use. The tab is a paged table (10 keys per page) with Add API
Key and a pencil and a bin per row. This is one tab in the agent-settings
family indexed by /iblai-vibe-agent; it shares the AgentSettingsProvider
wrapper with every other tab. The organization's settings list the same keys
on their API page (/iblai-vibe-account).
Keys -- name, Permission Mode, created and expiry dates ("N/A" when a
key never expires). The list and the buttons need the user's /apitokens/
grants (Step 2).
Add API Key -- a name (letters, numbers, hyphens and underscores), an optional expiry date, and a Permission Mode: Owner permissions (the key can do what you can do) or Token policies (it can do only what the policies and groups you pick allow). The pencil edits the same fields.
API Key -- Add API Key shows the secret once, with a copy button. It cannot be retrieved again; the list then jumps back to page 1.
Image: API tab -- new key shown once
Delete API Key -- the trash icon asks for confirmation. Anything using the key stops working at once.
Image: API tab -- Delete API Key
Common setup (brand, conventions, env files, verification): see docs/skill-setup.md.
Prerequisites
- Auth set up (
/iblai-vibe-auth, or vibe-starter). AgentSettingsProviderwraps the route (/iblai-vibe-agent§1).@iblai/iblai-js@^3.1.0(resolves@iblai/web-containers2.1.0). Check withpnpm why @iblai/web-containers.- A real agent UUID. Ask the user; never invent one.
- The signed-in user needs the organization's API-token grants (org admins have them).
Step 1: Check Environment
Look for iblai.env in the project root with PLATFORM, DOMAIN, and
TOKEN. If it is missing, tell the user:
"You need an iblai.env with your platform configuration. Download the
template and fill in your values:
curl -o iblai.env https://raw.githubusercontent.com/iblai/vibe/refs/heads/main/iblai.env"
Step 2: Mount AgentApiTab
The table and buttons are gated on the RBAC grants /apitokens/#list and
/apitokens/#create, read from the provider's rbacPermissions -- even with
enableRBAC={false}. Without them the tab says "You do not have permission
to view API keys." (or "No API keys yet.") and Add API Key never shows.
Load the grants and pass them to a nested provider:
// app/(app)/agents/[mentorId]/api/page.tsx
"use client";
import { useEffect, useState } from "react";
import {
AgentApiTab,
AgentSettingsProvider,
useAgentSettings,
} from "@iblai/iblai-js/web-containers/next";
import { useGetRbacPermissionsMutation } from "@iblai/iblai-js/data-layer";
export default function AgentApiPage() {
const settings = useAgentSettings();
const [grants, setGrants] = useState<object>({});
const [getRbacPermissions] = useGetRbacPermissionsMutation();
useEffect(() => {
getRbacPermissions({
requestBody: {
platform_key: settings.tenantKey,
resources: ["/apitokens/"],
},
})
.unwrap()
.then((permissions) => setGrants({ ...permissions }))
.catch(() => {});
}, [settings.tenantKey, getRbacPermissions]);
return (
<div className="flex h-full flex-col bg-white">
<AgentSettingsProvider {...settings} rbacPermissions={grants}>
<AgentApiTab />
</AgentSettingsProvider>
</div>
);
}If your layout already loads /apitokens/ grants into the provider, mount
<AgentApiTab /> directly. To put create and delete behind a paywall or
trial check, pass executeGatedAction on the provider; the tab runs both
through it.
Step 3: Customize Labels (Optional)
The tab renders with the default agent-facing copy (AGENT_API_TAB_LABELS,
localized through the SDK's i18n). Pass a partial labels object to change
any string:
import { AgentApiTab } from "@iblai/iblai-js/web-containers/next";
<AgentApiTab
labels={{
header: { title: "API keys" },
actions: { createNew: "New key" },
}}
/>;Label groups (ApiTabLabels): header (title, description), infoBox,
disclaimer (lineOne, lineTwo), table (column headings, emptyState,
noPermission, deleteAriaLabel, notAvailable), actions.createNew,
createModal (title, field labels, validation messages, buttons, toasts),
deleteModal (title, confirmation, warning, buttons, toasts), and
apiKeyModal (the one-time reveal: title, descriptions, copy button labels).
Step 4: Use MCP Tools for Customization
get_component_info("AgentApiTab")
get_component_info("AgentSettingsProvider")<AgentApiTab> Props
Import from @iblai/iblai-js/web-containers/next.
| Prop | Type | Required | Description |
labels | DeepPartial<ApiTabLabels> | No | Override user-visible strings |
Identity, grants and the gate come from AgentSettingsProvider (tenantKey,
username, rbacPermissions, executeGatedAction).
Related Exports
From @iblai/iblai-js/web-containers/next:
AGENT_API_TAB_LABELS-- the default label bundle.AgentApiTabProps,ApiTabLabels,ApiKey-- types.
How it saves
| Action | Request |
| Load | GET /api/core/platform/api-tokens/?platform_key={org}&page=…&page_size=10 |
| Add API Key (create) | POST /api/core/platform/api-tokens/ with name, platform_key, and expires_in (seconds until the chosen date, rounded up to whole days; omitted for no expiry), plus mode and, for Token policies, policies_to_add / groups_to_add. The tab also sends username, key, created, and expires, which the server ignores |
| Pencil (edit) | PATCH /api/core/platform/api-tokens/{name}?platform_key={org} with only what changed: the name, expires_in, mode, and the policies and groups to add or remove |
| Delete | DELETE /api/core/platform/api-tokens/{name}?platform_key={org} |
Keys are addressed by name. Deleting the last key on a page steps back a page.
Platform data
| Hook | Purpose |
useGetApiKeysQuery | The paged key list |
useCreateApiKeyMutation | Create a key (returns the secret once) |
useGetApiKeyQuery, useUpdateApiKeyMutation | Read one key with its policies and groups, and edit it |
useGetApiKeyFieldPermissionsQuery | Which of mode and the policy / group fields this person may write |
useDeleteApiKeyMutation | Delete a key by name |
useGetRbacPermissionsMutation | Load the /apitokens/ grants (Step 2) |
REST twin: /iblai-api-token
(Platform API Tokens, mode and token-scoped policies).
Step 5: Verify
Run /iblai-vibe-ops-test before telling the user the work is ready, and give
every page, control and state this skill added its own checkpoint — one Playwright
test titled <ID> · … in e2e/journeys/, listed in e2e/coverage.json;
pnpm e2e:coverage must pass:
pnpm build-- must pass with zero errors.pnpm test-- vitest must pass.- Touch test
/agents/<uuid>/apiin the browser as/iblai-vibe-ops-testsays, signed in as an org admin: the key table and Add API Key render; add a key, copy it, then delete it; read the console; check the phone width.
Important Notes
- Organization keys, not agent keys: creating a key here creates a Platform API Token for the whole organization, and deleting one breaks every app that uses it, whichever agent it calls.
- Shown once: the secret appears only in the reveal dialog; store it
then, server-side only (e.g.
IBLAI_API_KEYin.env.local), never in client code or git. - No table or button? The
/apitokens/grants are missing (Step 2). - Shared provider: mount
AgentSettingsProvideronce at the layout level (/iblai-vibe-agent§1). The nested provider in Step 2 replacesrbacPermissionsfor this tab with the/apitokens/grants; spread in the layout's grants if you have any. - Peer deps:
sonnerand@iblai/iblai-web-mentor(pnpm add sonner @iblai/iblai-web-mentor). - Brand guidelines: BRAND.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

