Skip to content

Commit 3508abf

Browse files
committed
docs(readme): full sync with private — OTP login + 10x.in positioning
Brings the public-repo README up to parity with the npm-package README. Adds: - "Sign in" section leading with `openanalyst account login`, the OTP flow that ships in 2.0.36 — no API key juggling, no browser. - 10x.in positioning: free account, free credits, single credit balance across every frontier model. Recommended path. - Skills marketplace (10x.in/skills) + plugin catalog (10x.in/plugins) explicitly called out so users see how the CLI extends beyond raw inference. - BYOP (Anthropic / OpenAI / Gemini / xAI / OpenRouter / Bedrock) still surfaced as first-class — explicitly supported, can be combined with an OpenAnalyst login. - Three-way usage (TUI / web console / self-host) and workspace jail explanations match the private README verbatim. This is the page visible at github.com/OpenAnalystInc/cli — the shop window. Source code still lives only in the private repo.
1 parent d8ce4dc commit 3508abf

1 file changed

Lines changed: 107 additions & 34 deletions

File tree

README.md

Lines changed: 107 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,144 @@
11
# OpenAnalyst CLI
22

3-
Public distribution repository for the latest OpenAnalyst CLI binaries, install scripts, and documentation.
3+
**The Universal AI Agent for Your Terminal — and now your Browser.**
4+
5+
OpenAnalyst is a single, focused AI development tool you can use three ways with the same install: as a rich terminal UI (TUI), as a browser-based web console pointed at your local machine, or as a self-hosted service on your own cloud infrastructure. Workspace-jailed by default, BYO-key for every major provider, zero lock-in.
46

57
## Install
68

9+
The fastest path on any OS:
10+
711
```bash
812
npm install -g @openanalystinc/openanalyst-cli
913
```
1014

11-
macOS / Linux:
15+
That gives you the `openanalyst` (and short `oa`) binary on your `$PATH`. If you prefer not to use npm:
16+
17+
**macOS / Linux:**
1218

1319
```bash
1420
curl -fsSL https://raw.githubusercontent.com/OpenAnalystInc/cli/main/install.sh | bash
1521
```
1622

17-
Windows PowerShell:
23+
**Windows PowerShell:**
1824

1925
```powershell
2026
irm https://raw.githubusercontent.com/OpenAnalystInc/cli/main/install.ps1 | iex
2127
```
2228

23-
## Usage
29+
Verify it installed:
30+
31+
```bash
32+
openanalyst --version
33+
```
34+
35+
## Sign in
36+
37+
You have three ways to give the CLI credentials. **We recommend signing in with an OpenAnalyst account** — you get one place to pay, one credit balance across every frontier model, plus the [10x.in](https://10x.in) skills & plugins catalog that turns the CLI into your team's dedicated workflow runner.
38+
39+
**1. Sign in with your OpenAnalyst account (recommended).** Free to start. One command, no API key juggling:
40+
41+
```bash
42+
openanalyst account login
43+
```
44+
45+
Don't have an account yet? Create one in 30 seconds at **[10x.in](https://10x.in)** — that's where you sign up, get free credits, manage plans, and grab an OpenAnalyst API key if you'd rather paste one in. The same login gives you:
46+
47+
- the full OpenAnalyst-routed model catalog — **Beta, Max, GPT-5.4, Claude Opus 4.7, Gemini 3 Pro** — through one balance, no per-provider keys.
48+
- the **skills marketplace** at [10x.in/skills](https://10x.in/skills) — install pre-built `/skills` like `/code-review`, `/release-notes`, `/security-audit` that run as first-class slash commands inside the CLI.
49+
- the **plugin catalog** at [10x.in/plugins](https://10x.in/plugins) — extend the CLI with custom tools (CRM connectors, internal-doc readers, deploy helpers) maintained by your team or the community.
50+
- usage analytics, team seats, and SSO at [10x.in/team](https://10x.in/team).
51+
52+
The CLI will prompt for your email, send a 6-digit code, you paste it back, and you're signed in. No browser, no copy-paste of long keys.
53+
54+
```bash
55+
openanalyst account status # see plan + credits left
56+
openanalyst account logout # sign out
57+
```
58+
59+
**2. Paste an OpenAnalyst API key.** Already have an `sk-oa-v1-*` key from [10x.in](https://10x.in) → Dashboard → API Keys?
2460

2561
```bash
62+
export OPENANALYST_API_KEY=sk-oa-v1-...
2663
openanalyst
27-
openanalyst --notui
28-
openanalyst --serve 8080
64+
```
65+
66+
…or set it once in `~/.openanalyst/.env` and forget it.
67+
68+
**3. Bring your own provider keys (BYOP).** Prefer to talk to Anthropic, OpenAI, Gemini, xAI, OpenRouter, or Bedrock directly with your own keys? Totally supported — drop them in `~/.openanalyst/.env` or paste them into the web console's Settings → Providers tab. The CLI auto-discovers what's available and shows only the models you can actually use. You can mix BYOP with an OpenAnalyst login; both work side-by-side and you pick which one inference uses per-session.
69+
70+
## Three ways to use it
71+
72+
**1. TUI in your terminal.** Just type `openanalyst` in any folder. The whole project becomes your workspace; the model can read and edit files only inside that folder.
73+
74+
**2. Web console in your browser.** Run `openanalyst --serve` from your project folder. Open the OpenAnalyst web console (hosted at `openanalystinc.github.io/cli/console` or self-built from the `web-ui/` source) and point it at `http://localhost:3080`. The Settings → **Account** tab gives you the same email/OTP sign-in flow as the CLI; the **Providers** tab lets you paste any other API keys you already have. The file viewer on the right side shows everything the model creates in your workspace, with one-click download.
75+
76+
**3. Self-host for your team.** Deploy `openanalyst --serve` on your AWS / Fly / Render / VPS. Build the `web-ui/` SPA pointing at your backend URL. Drop the static files on S3 + CloudFront. One client deployment per workspace, locked to one folder, fully your infrastructure.
77+
78+
## Usage
79+
80+
```bash
81+
openanalyst # launch the default interactive TUI
82+
openanalyst "what does this repo do?" # one-shot prompt, prints to stdout
83+
openanalyst account login # sign in with email + OTP (no browser)
84+
openanalyst account status # show your plan + credits left
85+
openanalyst account logout # sign out
86+
openanalyst --resume # restore the most recent saved session on launch
87+
openanalyst --notui # backend CLI without the TUI
88+
openanalyst --serve 8080 # hosted HTTP session API
89+
openanalyst --acp # Agent Client Protocol — JSON-RPC 2.0 over stdio
90+
openanalyst --acp --session-id ID # ACP session pinned to a persistent id
91+
openanalyst --acp --session-id ID --conversation-id CONV # plus a stable conversation handle
92+
openanalyst --control-socket # local-only IPC for external apps to spawn / list / load sessions
2993
```
3094

3195
- `openanalyst` launches the default interactive TUI.
96+
- `openanalyst --resume` rehydrates the most recently saved session on startup, equivalent to running `/resume` after launch.
3297
- `openanalyst --notui` runs the backend CLI without the TUI.
3398
- `openanalyst --serve 8080` exposes the hosted session API:
3499
- `POST /sessions`
35100
- `POST /sessions/{id}/message`
36101
- `GET /sessions/{id}/events`
102+
- `openanalyst --acp` speaks Agent Client Protocol (JSON-RPC 2.0 over stdio) — used by IDE integrations and the embedding-app pattern below.
103+
- `openanalyst --control-socket` runs a local-only Unix domain socket (Linux/macOS) or named pipe (Windows) at `~/.openanalyst/control.sock` for orchestrators and external apps. Token-gated via `~/.openanalyst/control.token` (mode 0600 on Unix). Exposes `authenticate`, `list`, `loadSession`, `spawn`, `shutdown`.
104+
105+
## Persistent multi-session
106+
107+
Pass `--session-id` and `--conversation-id` to `--acp` to make the CLI durable across restarts. Sessions are persisted to `~/.openanalyst/sessions.db` (single SQLite file, WAL mode, cross-process safe). The same `session_id` re-attached later picks up exactly where the previous process left off. External apps remember the stable `conversation_id``session_id` is the runtime handle and may rotate; `conversation_id` is the long-lived thread.
108+
109+
The Agent tool accepts an `isolation` parameter — set to `"process"` to spawn the sub-agent as a child `openanalyst-cli --acp` subprocess for crash isolation, true parallel CPU work, and restart durability. Default is `"thread"` for cheap, short-lived workers.
110+
111+
## Workspace jail
112+
113+
Every file operation is jailed to the folder the CLI was launched from. `Read`, `Write`, `Edit`, `Glob`, `Grep`, and `Bash` all canonicalize the requested path and refuse anything outside the workspace root. Path traversal (`../../etc/passwd`) is blocked. Symlinks are resolved before the check.
114+
115+
This is admin-controlled. The end user using the web console cannot disable the jail. Only the person who starts the server can — by setting `OPENANALYST_DISABLE_WORKSPACE_JAIL=1` before launching. Trusted external paths (e.g., shared library folders) can be allowlisted in `~/.openanalyst/settings.json` under `workspace_allow_paths`.
37116

38117
## Providers
39118

40-
OpenAnalyst CLI supports:
119+
OpenAnalyst CLI routes to any of these — pick whichever you want, mix and match:
120+
121+
- **OpenAnalyst (recommended)** — sign in with `openanalyst account login` or paste an `sk-oa-v1-*` key from [10x.in](https://10x.in). One credit balance, every frontier model: Beta, Max, GPT-5.4, Claude Opus 4.7, Gemini 3 Pro. Free credits on sign-up.
122+
- **Anthropic / Claude**`ANTHROPIC_API_KEY` (Claude Opus, Sonnet, Haiku).
123+
- **OpenAI / GPT / Codex**`OPENAI_API_KEY`.
124+
- **Google Gemini**`GEMINI_API_KEY`.
125+
- **xAI / Grok**`XAI_API_KEY`.
126+
- **OpenRouter**`OPENROUTER_API_KEY` (350+ models behind one key).
127+
- **Amazon Bedrock**`BEDROCK_API_KEY` (Bedrock-hosted Claude).
128+
- **Stability AI / Gemini Imagen / OpenAI Images** — image generation via `/image`.
129+
- **Brave Search / Tavily / Serper / Exa** — web search for `/scrape` and the WebSearch tool.
130+
131+
Set any of these as environment variables, drop them in `~/.openanalyst/.env`, or paste them in the web console's Settings → Providers tab. They're stored encrypted on disk.
132+
133+
## Skills & plugins (10x.in)
134+
135+
Beyond the model providers, the CLI installs **skills** (typed slash commands) and **plugins** (custom tools) from the [10x.in](https://10x.in) catalog. Signed-in users get access to:
136+
137+
- **[10x.in/skills](https://10x.in/skills)** — curated skills like `/code-review`, `/release-notes`, `/security-audit`, `/standup`, `/onboarding`. Install with `openanalyst skills install <name>` and they show up in the slash-command palette instantly.
138+
- **[10x.in/plugins](https://10x.in/plugins)** — first-party + community plugins: CRM connectors, internal-doc readers, deploy helpers, custom tool servers. `openanalyst extension install <plugin>` to add one.
139+
- **Skill authoring** — write your own skill at [10x.in/skills/new](https://10x.in/skills/new), share it with your team (private) or the world (public). The `/skills` directory inside the CLI honors both local and remote sources.
41140

42-
- OpenAnalyst
43-
- Anthropic / Claude
44-
- OpenAI / GPT / Codex
45-
- Google Gemini
46-
- xAI / Grok
47-
- OpenRouter
48-
- Amazon Bedrock
49-
- Stability AI
141+
The skills & plugins index is fetched at startup using your account credentials, so they "just work" once you've run `openanalyst account login`.
50142

51143
## Docs
52144

@@ -64,22 +156,3 @@ This repository is intentionally limited to public release assets:
64156
- npm package metadata
65157

66158
Source development for the private release pipeline happens separately.
67-
68-
## License
69-
70-
Copyright (c) 2026 OpenAnalyst Inc.
71-
72-
OpenAnalyst CLI is released under the
73-
[Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).
74-
The full text is in the [LICENSE](LICENSE) file at the project root.
75-
76-
Apache 2.0 grants you the right to use, modify, and redistribute
77-
the software (including for commercial purposes), provided that
78-
you include the license, state any modifications, and preserve
79-
copyright, patent, trademark, and attribution notices. A
80-
royalty-free patent grant is included. The software is provided
81-
"AS IS" with no warranty.
82-
83-
The Apache 2.0 license does NOT grant rights to the
84-
**OpenAnalyst** name or marks beyond fair attribution. For
85-
questions: support@openanalyst.com.

0 commit comments

Comments
 (0)