Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

2.8 KB
Raw Blame
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0

// shared by Settings > Agents and Settings > API; kept data-only for Node.js tests.

export const UNSLOTH_START_DOCS_URL =
  "https://unsloth.ai/docs/integrations/unsloth-start";

export type AgentDetails = {
  id: string;
  name: string;
  docsUrl: string;
  logo?: string;
  icon?: string;
  darkIcon?: string;
  color?: string;
  mark?: string;
  /** Draw the mark at 16px in the 20px slot, for marks that fill their whole box. */
  compact?: boolean;
};

// names stay untranslated; `settings.agents.intro` includes them for search.
export const SUPPORTED_AGENTS: AgentDetails[] = [
  {
    id: "claude",
    name: "Claude Code",
    docsUrl: "https://unsloth.ai/docs/basics/claude-code",
    logo: "anthropic",
  },
  {
    id: "codex",
    name: "OpenAI Codex",
    docsUrl: "https://unsloth.ai/docs/basics/codex",
    logo: "openai",
  },
  {
    id: "vscode",
    name: "VS Code",
    docsUrl:
      "https://code.visualstudio.com/docs/copilot/customization/language-models",
    // vscode.svg is the stable icon from code.visualstudio.com/brand.
    icon: "vscode.svg",
    compact: true,
  },
  {
    id: "dsh",
    name: "DeepSeek Harness",
    docsUrl: "https://github.com/deepseek-ai/deepseek-harness",
    logo: "deepseek",
  },
  {
    id: "opencode",
    name: "OpenCode",
    docsUrl: "https://unsloth.ai/docs/integrations/opencode",
    icon: "opencode-light.svg",
    darkIcon: "opencode-dark.svg",
    compact: true,
  },
  {
    id: "hermes",
    name: "Hermes Agent",
    docsUrl: "https://unsloth.ai/docs/integrations/hermes-agent",
    // hermes.png comes from the NousResearch/hermes-agent desktop assets.
    icon: "hermes.png",
  },
  {
    id: "openclaw",
    name: "OpenClaw",
    docsUrl: "https://unsloth.ai/docs/integrations/openclaw",
    icon: "openclaw.svg",
  },
  {
    id: "pi",
    name: "Pi",
    // Pi and Vibe have no page of their own: they share the unsloth start one.
    docsUrl: UNSLOTH_START_DOCS_URL,
    // The monochrome mark from https://pi.dev/favicon.svg, in its light and dark fills.
    icon: "pi-light.svg",
    darkIcon: "pi-dark.svg",
    compact: true,
  },
  {
    id: "vibe",
    name: "Mistral Vibe",
    docsUrl: UNSLOTH_START_DOCS_URL,
    logo: "mistral",
    compact: true,
  },
];

// Most developers have `code` on PATH, and VS Code is not a terminal agent: offered, never auto-picked.
export const NOT_AUTO_PICKED_AGENTS: ReadonlySet<string> = new Set(["vscode"]);

export function detailsFor(agentId: string): AgentDetails {
  return (
    SUPPORTED_AGENTS.find((agent) => agent.id === agentId) ?? {
      id: agentId,
      name: agentId,
      docsUrl: UNSLOTH_START_DOCS_URL,
      color: "#64748B",
      mark: agentId.slice(0, 2),
    }
  );
}