Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,20 @@ pnpm install --frozen-lockfile
cp .env.example .env
```

Set `OPENAI_API_KEY` and `BROWSERBASE_API_KEY` in `.env`. For ordinary browsing, set `BELL_DEMO_URL` to your target website.
Set `OPENAI_API_KEY` and `BROWSERBASE_API_KEY` in `.env`. For ordinary browsing, set `BELL_DEMO_URL` to your target website.
Set `PARALLEL_API_KEY` to enable public-web research. Keep research inputs public; use the browser for authenticated pages and actions.

```sh
pnpm dev
```

## WebMCP

In browsers that support WebMCP, Bell exposes ui-sdk's `snapshot`, `query`, and
`act` tools. A browser agent can discover controls and edit the message draft.
Sending messages, replying to Bell, starting a new conversation, opening the demo,
and stopping a request require confirmation. Browsers without WebMCP work normally.


## Start here

Expand Down
2 changes: 1 addition & 1 deletion agent/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { openai } from "@ai-sdk/openai";
import { defineAgent } from "eve";

export default defineAgent({
model: openai.responses(process.env.BELL_MODEL ?? "gpt-5.6-sol"),
model: openai.responses(process.env.BELL_MODEL ?? "gpt-6.1-sol"),
build: {
externalDependencies: [
"@1password/sdk",
Expand Down
227 changes: 0 additions & 227 deletions app/chat.tsx

This file was deleted.

100 changes: 100 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
@layer ui-sdk;
@import "tailwindcss";
@import "@ui-sdk/core/web.css" layer(components);

@theme {
--radius-sm: 2px;
--radius-md: 4px;
--radius-lg: 6px;

--tracking-wide: 0.025em;

--color-white: #fff;

--color-brand-yellow: #f4ba41;
--color-brand-pink: #ec679b;
--color-brand-green: #90c94d;

--color-bg-main: #ffffff;
--color-bg-bedrock: #f6f5f5;
--color-bg-top: #ffffff;
--color-bg-subtle: #fafafa;
--color-bg-layered: color-mix(in srgb, #260f17 6%, transparent);

--color-text-primary: #260f17;
--color-text-secondary: #514f4f;
--color-text-tertiary: #6e6c6a;

--color-border-faint: color-mix(in srgb, #260f17 7%, transparent);
--color-border-solid: #edebeb;
--color-border-medium: #cac8c7;

--color-primary: #ff4500;
--color-error: #ce1f02;
--color-success: #71ac38;
--color-alert: #f8d06f;
--color-active: #4da9e4;
}

:root {
color-scheme: light;
--ui-primary: #c93400;
--ui-primary-foreground: #fff;
--ui-ring: #c93400;
--ui-radius: 6px;
}

@layer base {
* {
border-color: var(--color-border-faint);
}
body {
background: var(--color-bg-bedrock);
color: var(--color-text-primary);
font-family: var(--font-sans);
-webkit-font-smoothing: antialiased;
}
button:not(:disabled) {
cursor: pointer;
}
:focus-visible {
outline: 2px solid #c93400;
outline-offset: 4px;
}
}

@layer components {
.secondary-button {
display: inline-flex;
height: 36px;
align-items: center;
gap: 6px;
border: 1px solid var(--color-border-medium);
border-radius: 6px;
background: white;
padding: 0 12px;
color: var(--color-text-primary);
font-size: 12px;
font-weight: 400;
}
.secondary-button:hover:not(:disabled) {
background: var(--color-bg-subtle);
border-color: #8d898b;
}
.secondary-button:disabled {
opacity: 0.5;
}
.skip-link {
position: fixed;
z-index: 50;
top: 8px;
left: 8px;
transform: translateY(-150%);
border-radius: 6px;
background: white;
padding: 12px;
}
.skip-link:focus {
transform: translateY(0);
}
}
5 changes: 3 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { ReactNode } from "react";
import "./style.css";
import "./globals.css";

export const metadata = {
title: "Bell | Personal assistant stack",
title: "Bell | Your personal assistant",
description: "A small, independent browser assistant.",
icons: { icon: "/bell.png" },
};
export default function Layout({ children }: { children: ReactNode }) {
return (
Expand Down
8 changes: 6 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import Chat from "./chat";
import BellWorkspace from "../components/bell-workspace";
export default function Page() {
return <Chat demoUrl={process.env.BELL_DEMO_URL ?? "https://example.com"} />;
return (
<BellWorkspace
demoUrl={process.env.BELL_DEMO_URL ?? "https://example.com"}
/>
);
}
Loading