# Quickstart

URL: https://docs.clinia.com/docs/get-started/quickstart

> Go from zero to exploring a patient story in under 10 minutes.

By the end of this page you will have a workspace, a patient record ingested, and a resolved patient story you can browse.

## What you need [#what-you-need]

- An email address or Google account (to create a free Clinia account)
- Node.js 20.9+ and pnpm 12+

## Steps [#steps]

<Steps>
<Step>

### Create a workspace [#create-a-workspace]

Go to [console.clinia.cloud](https://console.clinia.cloud) and sign up. After onboarding, create an organization, then create a workspace inside it. Your **Workspace ID** and **Workspace URL** are shown on the workspace details page.

Inside the workspace, scroll to **OAuth Credentials**, select **New credential**, and copy the **Client ID** and **Client Secret** immediately. The secret is shown only once.

See [Provision your First Workspace](https://docs.clinia.com/docs/platform/get-started) for a detailed walkthrough.

</Step>
<Step>

### Clone the Studio [#clone-the-studio]

The [Context Engine Studio](https://github.com/clinia/context-engine-studio) is a free, open-source app that connects to your workspace and gives you a visual interface to explore everything the engine produces.

```bash
git clone https://github.com/clinia/context-engine-studio.git
cd context-engine-studio
```

</Step>
<Step>

### Configure and start [#configure-and-start]

Create `.env.local` with your credentials:

```bash
cat > .env.local <<'EOF'
CLINIA_CONTEXT_ENGINE_API_URL=https://<workspace-id>.w.clinia.cloud
CLINIA_CONTEXT_ENGINE_OAUTH_CLIENT_ID=<your-client-id>
CLINIA_CONTEXT_ENGINE_OAUTH_CLIENT_SECRET=<your-client-secret>
EOF
```

Then install and run:

```bash
pnpm install
pnpm dev
```

Open [http://localhost:3000](http://localhost:3000).

</Step>
<Step>

### Ingest a patient record [#ingest-a-patient-record]

Download the [Jeanne Tremblay synthetic dataset](https://docs.clinia.com/samples/jeanne-tremblay.zip) (FHIR R4 bundle + C-CDA documents for a synthetic 72-year-old patient with a decade of clinical history). Unzip it and drop the folder onto the Studio onboarding dropzone.

The engine ingests both sources, runs entity resolution across them, and builds the patient story. This takes a few seconds.

</Step>
<Step>

### Browse the patient story [#browse-the-patient-story]

Once the ingest completes, expand the virtual file system tree in the sidebar:

- `/conditions/active/` shows every condition the engine resolved
- `/medications/active/` shows the current medication regimen
- `/encounters/` lists the encounters that addressed a condition, by year

Open **Chronic obstructive lung disease**, select `_story.md` and open the **Narrative** tab. You are reading a condition story: a pre-assembled longitudinal narrative covering onset, treatments, labs, and complications, all built from the resolved graph.

</Step>
<Step>

### Chat with the agent (optional) [#chat-with-the-agent-optional]

This step requires an [Anthropic API key](https://console.anthropic.com/) with access to `claude-opus-4-8`. Add it to your `.env.local`:

```bash
echo 'ANTHROPIC_API_KEY=<your-anthropic-api-key>' >> .env.local
```

Restart the Studio (`pnpm dev`), open the chat panel, and type:

> Given the recent acute COPD exacerbation, is the current inhaler regimen appropriate and is bone health being monitored?

The agent browses the VFS, reads the relevant condition stories, and answers with citations to the files it used. Watch the tool calls to see exactly which paths it navigated. It discovers the ICS-bone-loss relationship from the condition stories without any application code that encodes that knowledge.

</Step>
</Steps>

---

## Next steps [#next-steps]

<Cards>
  <Card
    title="Explore a Patient"
    href="/studio/explore-a-patient"
    description="Deeper walkthrough of everything the Studio can do."
  />
  <Card
    title="Ingest and Query via API"
    href="/docs/get-started/ingest-and-query-a-patient"
    description="Do the same thing with curl and the REST API."
  />
  <Card
    title="Connect an AI Agent"
    href="/docs/context-assembly/connect-an-ai-agent"
    description="Wire MCP tools to Claude programmatically."
  />
</Cards>
