# Parse on your own device

> Three ways to read a CAS without sending it anywhere — the in-browser terminal, the portfolio-intel CLI, and how they compare with the API.

The parser behind the API is deterministic TypeScript — no model reads your
statement — so it can run wherever JavaScript runs. When the statement never
needs to leave the machine, it doesn't have to.

| | Browser terminal | `portfolio-intel` CLI | REST API / MCP |
| --- | --- | --- | --- |
| Where the PDF goes | Stays in the tab | Stays on disk | Uploaded to our servers (India) |
| Account or key | None | None | API key |
| Good for | Trying it on your own CAS | Scripts, pipelines, advisors with many files | Products, agents, back ends |
| Output | Screen, `/export` JSON | Screen, `--json` on stdout | JSON with `snapshot_id`, enrichment, reports |
| Enrichment (live NAV, benchmarks) | No | No | Yes |

Both local options share one command set (`/holdings`, `/allocation`,
`/verify`, `/export`…), mask investor names and folio numbers before anything
is printed, and never make a network request to parse.

## In the browser

Open [portfoliointel.co.in](https://portfoliointel.co.in/#see-it-work) and
scroll to **See It In Action**. It runs `/demo` on a bundled sample; then drop
your own CAS PDF onto the terminal, or type `/parse` to pick one. The PDF is
read with `FileReader` into the tab and parsed there.

> **Tip**
>
> Type `/` to see every command, and `?` on an empty prompt for keyboard
> shortcuts. `esc` interrupts a parse.

## In your terminal

- [portfolio-intel CLI](https://docs.portfoliointel.co.in/local/cli): Interactive TUI and a headless parse command with JSON output and exit codes.
- [REST API](https://docs.portfoliointel.co.in/api-reference/parse): When you need snapshots, enrichment and reports.

Source: https://docs.portfoliointel.co.in/local/overview/
