Agents
AgentCard
Single-agent card with avatar, name, role, model, status, and the tools available to it.
Preview
Researcher
workingGathers facts from the web and internal corpora.
claude-sonnet-4-5
search_webfetch_urlsearch_documentsWriter
idleSynthesises findings into a final answer.
claude-opus-4
write_markdownInstallation
pnpm add nyxis-ui
Usage
import { AgentCard, type Agent } from 'nyxis-ui';
const agent: Agent = {
id: 'researcher',
name: 'Researcher',
role: 'Gathers facts from the web and corpora.',
modelId: 'claude-sonnet-4-5',
initials: 'RS',
status: 'working',
tools: ['search_web', 'fetch_url', 'search_documents'],
};
<AgentCard agent={agent} onSelect={(id) => focus(id)} />;
Anatomy
- Avatar (or initials fallback) + name + status pill on the title row.
- One-line role description.
- Model id with a bot icon.
- Tool chips (max 6 visible,
+Noverflow). - Optional selection: pass
onSelectand the card becomes a button; combine withselectedfor the controlled state.
When to use this vs. <AgentRoster>
<AgentCard>— when you want to render one agent inline (e.g. inside a chat message metadata row).<AgentRoster>— when you want a multi-agent team picker with search and filters.