iblai-vibe-agent-llm
Skill222 starsChanged 13 days agoMITView on GitHub
Add the agent LLM tab (pick the provider and model the agent answers with, allow in-chat model change, choose the models users can pick) to your Next.js app. Use when the user mentions the agent's model, LLM, provider, switching to GPT / Claude / Gemini, the model picker, letting users switch models, or a model change refused because a capability is on. For the REST contract see /iblai-api-agent-llm.
- 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-apiSkill
- 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-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
3 rules. About 0 are common, 1 is distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Add the agent LLM tab -- which provider and model the agent answers with.
- Very specific: line 93
Look for iblai.env in the project root with PLATFORM, DOMAIN, and TOKEN.
- Very specific: line 300
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-llm
Add the agent LLM tab -- which provider and model the agent answers with.
Scope: per agent. The choice is saved on the agent's settings
(llm_provider + llm_name), so every user who chats with the agent gets the
same model. The tab shows a searchable grid of provider cards; clicking a card
opens that provider's models, and clicking a model saves it. This is one tab
in the agent-settings family indexed by /iblai-vibe-agent; it shares the
AgentSettingsProvider wrapper with every other tab.
Above the grid sit two boxes:
- Allow In-Chat Model Change -- a switch that lets users pick another
model for their own chat session (it resets to the agent's model on a new
chat). It moved here from Settings → Capabilities in
@iblai/iblai-js2.44.0. - Models Users Can Pick -- shown only to an organization admin
(
isTenantAdmin) while the switch is on. It counts the models users are allowed and holds the User Models button.
Image: LLM tab -- Allow In-Chat Model Change and Models Users Can Pick above the provider grid
Providers -- one card per provider the platform offers. The agent's current provider has a blue border. Providers the organization holds no usable key for are tinted gray and sorted last. Names and logos come from the API; a provider without a logo shows its initial.
Model picker -- a card opens LLM Selection with that provider's models, searchable. The current model is highlighted. Clicking another model saves it at once (no confirm step) and toasts "LLM updated successfully".
Image: LLM tab -- model picker
A refused model change -- the platform refuses a model that cannot run a
capability the agent has on. Since @iblai/iblai-js 3.0.0 the error toast
says which capability and where to turn it off, instead of the platform's
text: "Grading is on, and the model you picked can't use it. Turn it off in
the Grader tab first, or pick a different model." The place is one of
Settings > Capabilities, the Datasets tab, the Grader tab, the Support tab,
the Screen tab or the MCP tab (where each switch lives:
/iblai-vibe-agent-tool). A tool with no switch of its own gets "This agent
uses Google Docs, which the model you picked can't run. Pick a different
model." When Screen Sharing is on and voice calls lack their AI provider's
API key, the platform refuses the change too, and the toast says "Screen
Sharing is on, and voice calls with this agent need an API key from their AI
provider. Add it in Secrets in your organization settings, or turn Screen
Sharing off in the Screen tab, then try again." The saved model stays
selected. Any other failed save toasts the platform's error text, or
"Failed to update LLM" when it sends none. After a model is saved, the tab
reads the agent's tool list again, so the capability switches in the other
tabs lock or unlock for the new model.
User Models opens a searchable dialog of provider cards. A card with at least one allowed model shows "N of M allowed" or "All allowed"; the others show no count. It sets which models users in the organization can pick, for every agent:
Image: User Models dialog -- provider cards with how many models each allows
A card opens the same LLM Selection modal as a checklist: Allow All {Provider} Models (new models of that provider included), a checkbox per model, "N of M selected" and Done. Every tick saves at once:
Image: LLM Selection as a checklist -- Allow All OpenAI Models and one checkbox per model
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; if it shows 1.16.0, run/iblai-vibe-ops-upgrade, which removes the old override.- A real agent UUID. Ask the user; never invent one.
- Provider keys are organization settings, not part of this tab. A provider
without a key stays grayed out; adding keys is an admin task
(
/iblai-api-integration).
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 AgentLLMTab
// app/(app)/agents/[mentorId]/llm/page.tsx
"use client";
import { AgentLLMTab } from "@iblai/iblai-js/web-containers/next";
import { isTenantAdmin } from "@/lib/iblai/tenant";
export default function AgentLLMPage() {
return (
<div className="flex h-full flex-col bg-white">
<AgentLLMTab isTenantAdmin={isTenantAdmin()} />
</div>
);
}The tab reads tenantKey, mentorId, and username from
AgentSettingsProvider and does its own fetching and saving. No props are
required. Provider names and logos are owned by the API, so there is no logo
map to pass: the old getLLMProviderDetails prop and LLMProviderDetails
type are gone.
isTenantAdmin only decides whether the Models Users Can Pick box and
the User Models dialog render; the backend refuses the save for anyone who
is not an organization admin. Leave it out (default false) on surfaces
members reach, and in a "switch model" dialog opened from the chat.
To reuse the tab outside the settings page -- for example a "switch model"
dialog opened from the chat header -- drop the header and wrap it in its own
AgentSettingsProvider. The tab always reads the org, username, and RBAC
switch from the provider and throws without one (vibe-starter's chat page has
none); the mentorId prop only overrides the agent.
import {
AgentLLMTab,
AgentSettingsProvider,
} from "@iblai/iblai-js/web-containers/next";
export function SwitchModel({
agentId,
tenantKey,
username,
}: {
agentId: string;
tenantKey: string;
username: string;
}) {
return (
<AgentSettingsProvider
tenantKey={tenantKey}
mentorId={agentId}
username={username}
enableRBAC={false}
>
<AgentLLMTab showConfigurationHeader={false} />
</AgentSettingsProvider>
);
}Step 3: Customize Labels (Optional)
The tab renders with the default agent-facing copy (AGENT_LLM_TAB_LABELS,
localized through the SDK's i18n). Pass a partial labels object to change
any string:
import { AgentLLMTab } from "@iblai/iblai-js/web-containers/next";
<AgentLLMTab
labels={{
header: { title: "Model" },
inChatModelChange: { label: "Let Users Switch Models" },
providerModal: { title: "Choose a model" },
}}
/>;Label groups (LLMTabLabels): header (title, description), infoBox,
inChatModelChange (label, description, tooltip, tooltipAriaLabel),
search.placeholder, providerLogoAlt(name), toasts (updateSuccess,
updateError), and providerModal -- title, description(name),
searchPlaceholder, helpText, providerIconAlt(name), the on-device
download dialogs (tooLargeTitle, tooLargeDescription, cancel,
downloadAnyway, alreadyDownloadingTitle, alreadyDownloadingDescription,
unnamedModel, gotIt), screen-reader announcements (announce*), and
localModel (LocalModelRowLabels, the on-device row copy).
The User Models dialog's copy is not in labels; it follows the SDK's locale.
Step 4: Use MCP Tools for Customization
get_component_info("AgentLLMTab")
get_component_info("AgentSettingsProvider")<AgentLLMTab> Props
Import from @iblai/iblai-js/web-containers/next.
| Prop | Type | Required | Description |
labels | DeepPartial<LLMTabLabels> | No | Override user-visible strings |
showConfigurationHeader | boolean | No | Show the title bar and side padding. Defaults to true; pass false inside a dialog |
mentorId | string | No | Agent UUID to configure, overriding AgentSettingsProvider |
isTenantAdmin | boolean | No | Organization admin acting as one: while Allow In-Chat Model Change is on, shows Models Users Can Pick and the User Models dialog (default false) |
How it saves
| Control | Request | Body |
| Model in LLM Selection | PUT /api/ai-mentor/orgs/{org}/users/{username}/mentors/{mentor}/settings/ (useEditMentorMutation) | llm_provider, llm_name |
| Allow In-Chat Model Change | same settings PUT, at once (through executeGatedAction when the provider sets one) | enable_in_chat_llm_change |
| User Models dialog (read) | GET /api/core/rbac/llm-access/status/?platform_key={org} (useGetLlmAccessQuery) | -- |
| Each tick in the checklist | POST /api/core/rbac/llm-access/set/ (useSetLlmAccessMutation) | { platform_key, llm_resources }, the whole list |
llm_resources holds RBAC paths: llms/ (every model), llms/<provider>/
(every model of one provider, new ones included) and
llms/<provider>/models/<llm_name> (one model), built from the provider
name and the model llm_name. Saves run one at a time and the last tick
wins. A failed save puts the tick back; a 400 names the model that is no
longer offered and offers Remove It; unticking the last model asks
first (Save with No Models?). Users who are not admins see only the
allowed models in the chat's model picker. The endpoints are in /iblai-api-rbac.
The switch follows the agent's permissions entry for
enable_in_chat_llm_change; with no entry, enableRBAC decides (false
allows it, true hides it).
Test ids
| Element | data-testid |
| Info box | llm-info-box |
| Allow In-Chat Model Change switch | llm-in-chat-model-change-toggle |
| Models Users Can Pick box, its count, its button | users-models-summary, users-models-summary-count, llm-users-models-button |
| Provider card (grid) | llm-provider-card (data-provider, data-disabled) |
| User Models dialog, provider card, card count | users-models-dialog, users-models-provider-card (data-provider), users-models-count-<provider> |
| Checklist rows, Done | users-models-allow-all-<provider>, users-models-model-<provider>-<llm_name>, users-models-done |
| Save refused, Remove It, confirm empty | users-models-save-error, users-models-remove-rejected, users-models-confirm-empty-save |
Related Exports
From @iblai/iblai-js/web-containers/next:
AGENT_LLM_TAB_LABELS,resolveLLMTabLabels-- the default label bundle and its merge helper.LLMProviderModal(LLMProviderModalProps) -- the model picker on its own. Passselection(typeLLMModelSelection:isSelected,toggle,allSelected,toggleAll,labels,testIdPrefix) instead ofonSelect/isSelecting/mentorSettings/llmsto get the checklist the User Models dialog uses.LocalModelRow(LocalModelRowProps,LocalRowStatus) -- an on-device model row.getProviderName-- folds provider keys and display names onto one id ("Microsoft"and"azure_openai"both giveazure_openai).AgentLLMTabProps,LLMTabLabels,LocalModelRowLabels,LLMProvider,LLMProviderType-- types.
From @iblai/iblai-js/data-layer:
useGetLlmAccessQuery({ platform_key }),useSetLlmAccessMutation()-- read and replace the models users can pick.
From @iblai/iblai-js/web-containers, for custom UI that shows a
provider's name or logo (an agents table, a transcript row):
useLlmProviderCatalogue({ org, userId, mentorId })-- returns a resolver(llmProvider?, llmName?) => LlmProviderDetailsover the samementor-llmsrows the tab reads (the tab reads them directly; the SDK uses this hook forLlmModelBadge); a key the catalogue does not list resolves to the raw key and no logo.LlmProviderDetails--{ logo: string | null; displayName: string }.inferProviderKeysFromModel-- the provider keys a model name implies.
How it saves
| Action | Request |
| Load | GET mentor-llms/?mentor_id=<uuid> (providers with chat_models, logo, and credential flags) and the agent's settings (current llm_provider, llm_name) |
| Click a model | PUT mentors/{uuid}/settings/ with llm_provider and llm_name |
A model is disabled when its provider has no usable key or no models, or when it is already selected.
Platform data
| Hook | Purpose |
useGetLlmsQuery | Providers and their models |
useGetMentorSettingsQuery | The agent's current provider and model |
useEditMentorMutation | Save the new provider and model |
useLazyGetToolsQuery | Read the agent's tool list again after a model is saved, so the capability switches in the other tabs lock or unlock for the new model |
REST twin: /iblai-api-agent-llm.
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>/llmin the browser as/iblai-vibe-ops-testsays: the provider grid renders with the current provider outlined; open it -- the current model is highlighted; read the console; check the phone width. As an organization admin, turn on Allow In-Chat Model Change and check that Models Users Can Pick appears and User Models opens.
Important Notes
- Per agent, not per user: everyone who chats with the agent gets the model chosen here.
- No confirm step: clicking a model saves it. Explore on a test agent.
- RBAC: with
enableRBACon, a user without write permission onllm_providersees the provider cards but clicks do nothing. - On-device models: in the ibl.ai desktop app (Tauri) the picker also
lists downloadable on-device models (
/iblai-vibe-local-llm); on the web it shows cloud models only. - Shared provider: mount
AgentSettingsProvideronce at the layout level (/iblai-vibe-agent§1); do not wrap each tab. - Peer deps:
sonnerand@iblai/iblai-web-mentor(pnpm add sonner @iblai/iblai-web-mentor). - The switch moved: Allow In-Chat Model Change used to be in
Settings → Capabilities. Since
@iblai/iblai-js2.44.0 it is only here, and the Settings tab no longer sendsenable_in_chat_llm_change. - User Models is organization-wide: the list applies to every agent in the organization, not just the one being edited.
- 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.

