Skip to content

Agent UI SDKOne conversation UI for every agent.

Capability-driven Vue controls for applications powered by Codex, Claude, Cursor and Antigravity. Compose a complete pane or just the pieces you need.

Agent UI SDK

A deliberately small integration ​

Your trusted host runs a session through @korus-dev/multi-agent-sdk. The renderer binds a reactive snapshot and a handful of session-bound actions, then renders the pane:

vue
<script setup lang="ts">
import { onBeforeUnmount, shallowRef } from 'vue';
import { ConversationPane, createSessionConversationController } from '@korus-dev/agent-ui-sdk';
import '@korus-dev/agent-ui-sdk/styles.css';
import { bridge } from './bridge'; // your typed window.bridge, see the quick start

const initial = await bridge.read();
const state = shallowRef(initial.state);
const off = bridge.subscribe(next => { state.value = next; });

const binding = createSessionConversationController({
  conversationKey: 'conversation-1',
  state,
  capabilities: () => initial.capabilities,
  client: bridge,
});
onBeforeUnmount(() => { off(); binding.dispose(); });
</script>

<template>
  <ConversationPane :controller="binding.controller" />
</template>

Provider handles, credentials, filesystem paths and Electron objects never cross into this code.

One package, a few clear layers ​

Root

Provider-neutral Vue controls, session composition, themes, providers and document panels.

/host

Renderer-safe contracts for attachments, clipboard, links and speech, plus prompt-option translation.

/electron

Typed IPC, window policy, native capabilities and the preload bridge for desktop hosts.

/speech

Trusted Apple SpeechAnalyzer and OpenAI dictation sessions.

/browser

Browser contracts, the Vue browser panel, and a guarded Electron browser manager.

Start where you are ​

If you are building…Start from…
A new agent applicationQuick start
A pane inside an existing Vue appConversation pane and session binding
A custom layout from individual controlsComposer and messages and tools
An Electron desktop hostElectron host
A focused, branded chatPresentation and theming and the Spark sample
A business application with model-driven operationsThe Relay sample

Design rule

The UI works from capabilities and session state. It never branches on a provider name. Applications supply wording such as permission labels, and the harness SDK supplies behavior.

Source and package access ​

The package is published to npm as @korus-dev/agent-ui-sdk under the Apache-2.0 license. The component lab needs no provider login: clone the repository, run npm ci and npm run dev:lab.

The SDK is pre-1.0 and these docs follow main; package releases may lag behind.

Quick start →

Released under the Apache License 2.0.