Open-source AI coworkers that each get a computer of their own: a browser, files and tools, with every action decided before it happens and recorded after. Bring any AG-UI agent.
import {
IconBuildingBank,
IconChecks,
IconChevronRight,
IconCode,
IconDeviceDesktop,
IconFileText,
IconKey,
IconLayoutGrid,
IconListDetails,
IconPuzzle,
IconShieldCheck,
IconUsers,
} from "@tabler/icons-react";
import {
createFileRoute,
Link,
type LinkOptions,
} from "@tanstack/react-router";
import {
PageRows,
PageSection,
PageShell,
} from "@/components/layout/page-shell";
import { StaggerItem } from "@/components/layout/stagger";
import {
Item,
ItemContent,
ItemDescription,
ItemMedia,
ItemTitle,
} from "@/components/ui/item";
import { Separator } from "@/components/ui/separator";
export const Route = createFileRoute("/_authed/admin/")({
component: RouteComponent,
});
/**
* Grouped by what the decision is about rather than by how the code is organised.
*
* "What Bots can reach" is the group an administrator arrives worrying about, so it goes first.
* Everything in it either grants a capability or fences one in.
*/
const SECTIONS: {
title: string;
description: string;
items: {
description: string;
icon: React.ComponentType<{ className?: string }>;
linkOptions: LinkOptions;
title: string;
}[];
}[] = [
{
title: "What Bots can reach",
description: "Control what Bots can access outside OpenBot.",
items: [
{
title: "Credentials",
description: "Manage this deployment’s keys and tokens.",
icon: IconKey,
linkOptions: { to: "/admin/credentials" },
},
{
title: "Boundaries",
description: "Define actions that no Bot may take.",
icon: IconShieldCheck,
linkOptions: { to: "/admin/boundaries" },
},
{
title: "Approvals",
description: "Choose which actions require approval for members’ Bots.",
icon: IconChecks,
linkOptions: { to: "/admin/approvals" },
},
{
title: "Computers",
description: "Manage the computers that run Bot tools.",
icon: IconDeviceDesktop,
linkOptions: { to: "/admin/computers" },
},
],
},
{
title: "What Bots can do",
description:
"Configure the apps, skills, and UI components available to Bots.",
items: [
{
title: "Plugins",
description: "Connect services and choose which Bots can use them.",
icon: IconPuzzle,
linkOptions: { to: "/admin/plugins" },
},
{
title: "Skills",
description: "Create reusable instructions people can run with /.",
icon: IconFileText,
linkOptions: { to: "/admin/skills" },
},
{
title: "Automatic learning",
description:
"Learn from finished conversations and review the skills it proposes.",
icon: IconFileText,
linkOptions: { to: "/admin/learning" },
},
{
title: "UI components",
description:
"Manage custom components that Bots can display in conversations.",
icon: IconLayoutGrid,
linkOptions: { to: "/admin/components" },
},
{
title: "Playground",
description: "Write a component and watch it render as you type.",
icon: IconCode,
linkOptions: { to: "/admin/playground" },
},
],
},
{
title: "Who can get in",
description: "",
items: [
{
title: "People",
description: "Review members, manage admin roles, and remove access.",
icon: IconUsers,
linkOptions: { to: "/admin/people" },
},
{
title: "Enterprise controls",
description:
"Configure roles, groups, SSO, SCIM, Skill sharing, network policies, allowlists, and Action Recording.",
icon: IconShieldCheck,
linkOptions: { to: "/admin/enterprise" },
},
{
title: "Identity providers",
description:
"Configure your company’s sign-in provider for each email domain.",
icon: IconBuildingBank,
linkOptions: { to: "/admin/identity-providers" },
},
],
},
{
title: "What happened",
description: "",
items: [
{
title: "Audit",
description: "Review actions taken in OpenBot and who took them.",
icon: IconListDetails,
linkOptions: { to: "/admin/audit" },
},
],
},
];
function RouteComponent() {
return (
<PageShell
description="Manage settings that apply to everyone and every Bot in this deployment."
title="Admin"
>
{SECTIONS.map((section) => (
<PageSection
description={section.description || undefined}
key={section.title}
title={section.title}
>
<PageRows>
{section.items.map((item, index) => (
<StaggerItem index={index} key={item.title}>
{/*
* The whole row is the link, not a chevron somebody has to aim at: every row here
* goes exactly one place, so there is nothing else the row could mean.
*/}
<Item
render={(props) => <Link {...item.linkOptions} {...props} />}
size="sm"
>
<ItemMedia variant="icon">
<item.icon />
</ItemMedia>
<ItemContent>
<ItemTitle>{item.title}</ItemTitle>
<ItemDescription>{item.description}</ItemDescription>
</ItemContent>
<IconChevronRight className="size-4 shrink-0 text-muted-foreground" />
</Item>
{index !== section.items.length - 1 && <Separator />}
</StaggerItem>
))}
</PageRows>
</PageSection>
))}
</PageShell>
);
}