import { useState } from "react"; import { useStore } from "../state/store"; import { ConnectionForm } from "./ConnectionForm"; import { DerezLogoLink } from "./DerezLogo"; import { EditIcon, TrashIcon } from "./Icons"; export function ConfigScreen() { const config = useStore((s) => s.config); const saveConnection = useStore((s) => s.saveConnection); const removeConnection = useStore((s) => s.removeConnection); const setActiveConnection = useStore((s) => s.setActiveConnection); const [editingId, setEditingId] = useState(null); return (

Connect to your Hermes

Point this app at your Hermes API Server (the OpenAI-compatible endpoint), not the dashboard. It authenticates with your API_SERVER_KEY.

{config.connections.length > 0 && (

Saved connections

{config.connections.map((c) => (
setActiveConnection(c.id)} > {c.name} {c.profile ? ` ยท ${c.profile}` : ""} {c.sameOrigin ? "same origin" : c.baseUrl}
{editingId === c.id && (
{ await saveConnection(conn); setEditingId(null); }} onCancel={() => setEditingId(null)} saveLabel="Save changes" />
)}
))}
)}
); }