Skip to content

An open-source, faster Devin alternative

TypeScript

adjust guides

Brian Reardon7e61d17d65da
diff --git a/web/src/App.tsx b/web/src/App.tsx
index f7a7c8e6..ceb8d996 100644
--- a/web/src/App.tsx
+++ b/web/src/App.tsx
@@ -33,6 +33,7 @@ export default function App() {
<Route element={<ProtectedRoute />}>
<Route element={<AppShell />}>
<Route index element={<Dashboard />} />
+ <Route path="getting-started" element={<Dashboard />} />
{/* Agent plane */}
<Route path="agents" element={<Agents />} />
<Route path="agents/:agentId" element={<AgentDetail />} />
diff --git a/web/src/components/app-shell.tsx b/web/src/components/app-shell.tsx
index b9cdeb97..f28f7610 100644
--- a/web/src/components/app-shell.tsx
+++ b/web/src/components/app-shell.tsx
@@ -3,6 +3,7 @@ import { Link, NavLink, Outlet, useLocation } from 'react-router-dom'
import { useQuery } from '@tanstack/react-query'
import {
LayoutGrid,
+ Rocket,
Bot,
MessagesSquare,
Monitor,
@@ -55,7 +56,12 @@ type NavGroup = { label?: string; items: NavItem[] }
// (sandbox) plane, plus account/org. Groups render with spacing + a small muted
// label rather than hard dividers.
const NAV: NavGroup[] = [
- { items: [{ to: '/', label: 'Dashboard', icon: LayoutGrid, end: true }] },
+ {
+ items: [
+ { to: '/', label: 'Dashboard', icon: LayoutGrid, end: true },
+ { to: '/getting-started', label: 'Getting started', icon: Rocket },
+ ],
+ },
{
label: 'Agents',
items: [
diff --git a/web/src/pages/Dashboard.tsx b/web/src/pages/Dashboard.tsx
index 87cf53c5..03ec5d72 100644
--- a/web/src/pages/Dashboard.tsx
+++ b/web/src/pages/Dashboard.tsx
@@ -1,6 +1,6 @@
import { useEffect, useRef, useState, type ReactNode } from 'react'
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
-import { Link, useNavigate } from 'react-router-dom'
+import { Link, useNavigate, useLocation } from 'react-router-dom'
import {
ArrowLeft,
BarChart3,
@@ -137,6 +137,14 @@ const session = await oc.sessions.create({
input: "Give me a quick tour of this sandbox.",
});
console.log(session.id, session.clientToken);`,
+ },
+ {
+ label: 'CLI',
+ code: `oc agent create my-agent \\
+ --runtime claude --model anthropic/claude-opus-4-8 --credential managed
+
+oc session create --agent my-agent \\
+ --input "Give me a quick tour of this sandbox."`,
},
{
label: 'cURL',
@@ -224,8 +232,11 @@ const isLiveSession = (s: Session) =>
export default function Dashboard() {
const prefetch = usePrefetchSandbox()
- // Returning users can re-open the getting-started screen from the header.
- const [showGettingStarted, setShowGettingStarted] = useState(false)
+ const location = useLocation()
+ const navigate = useNavigate()
+ // Getting started is its own left-nav item (/getting-started). Brand-new orgs
+ // also see it inline on first run (at /).
+ const onGettingStartedRoute = location.pathname === '/getting-started'
const { data: runningSandboxesData, isLoading: loadingRunningSandboxes } =
useQuery({
@@ -269,8 +280,9 @@ export default function Dashboard() {
allSandboxes.length === 0 &&
sessions.length === 0
- // Genuine first-run auto-shows onboarding; returning users opt in via the link.
- const showOnboarding = isFirstRun || showGettingStarted
+ // Genuine first-run auto-shows onboarding; returning users reach it via the
+ // left-nav "Getting started" item (/getting-started).
+ const showOnboarding = isFirstRun || onGettingStartedRoute
const sessionColumns: Column<Session>[] = [
{
@@ -361,22 +373,12 @@ export default function Dashboard() {
<PageHeader
title="Dashboard"
description="Overview of your agent sessions and sandboxes"
- actions={
- <button
- type="button"
- onClick={() => setShowGettingStarted(true)}
- className="text-muted-foreground hover:text-foreground inline-flex items-center gap-1.5 text-sm underline-offset-4 hover:underline"
- >
- <Sparkles className="size-3.5" />
- Getting started
- </button>
- }
/>
)}
{showOnboarding ? (
<GettingStarted
- onBack={!isFirstRun ? () => setShowGettingStarted(false) : undefined}
+ onBack={onGettingStartedRoute ? () => navigate('/') : undefined}
/>
) : (
<div className="space-y-6">
diff --git a/web/src/pages/SessionDetail.tsx b/web/src/pages/SessionDetail.tsx
index 8f3b806b..c1df480b 100644
--- a/web/src/pages/SessionDetail.tsx
+++ b/web/src/pages/SessionDetail.tsx
@@ -98,6 +98,14 @@ const session = await oc.sessions.create({
agent: agent.id,
input: "Give me a quick tour of this sandbox.",
});`,
+ },
+ {
+ label: 'CLI',
+ code: `oc agent create my-agent \\
+ --runtime claude --model anthropic/claude-opus-4-8 --credential managed
+
+oc session create --agent my-agent \\
+ --input "Give me a quick tour of this sandbox."`,
},
{
label: 'API',
@@ -129,6 +137,7 @@ for await (const event of session.events()) {
console.log(event.type, event.body);
}`,
},
+ { label: 'CLI', code: `oc session logs $SESSION_ID` },
{
label: 'API',
code: `curl -N https://api.opencomputer.dev/v3/sessions/$SESSION_ID/events?stream=sse \\
@@ -148,6 +157,10 @@ for await (const event of session.events()) {
label: 'SDK',
code: `await session.steer("Also add a dark mode toggle.");`,
},
+ {
+ label: 'CLI',
+ code: `oc session steer $SESSION_ID "Also add a dark mode toggle."`,
+ },
{
label: 'API',
code: `curl -X POST https://api.opencomputer.dev/v3/sessions/$SESSION_ID/messages \\