Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs: correct setup and agent connection guidance (#10591)

[._.]/fd3565be9c57
diff --git a/.claude/skills/portos-api/SKILL.md b/.claude/skills/portos-api/SKILL.md
index f1a5b6ae9c..4fb4bfefe1 100644
--- a/.claude/skills/portos-api/SKILL.md
+++ b/.claude/skills/portos-api/SKILL.md
@@ -20,7 +20,7 @@ node scripts/portos-api.js get /api/api-docs/catalog.json # discover endpoints
- When the user has to do something by hand later (post, reply, upload, sign), schedule it with `POST /api/human-actions/plans` instead of only saying so in chat: each step gets a due time with a UTC offset, explicit `instructions`, and the exact text to paste in `content`. It lands in Review Hub › Actions and notifies them when due. Reuse the same `planKey` to replace a plan. Shape: [docs/API.md › Human Actions](../../../docs/API.md#human-actions).
- Credential order: `PORTOS_API_TOKEN` (set inside PortOS-spawned agents), then `~/.portos/agent-key.json` (the agent API key).
-- `whoami` answering `"authenticated": false`, or a `401 AUTH_REQUIRED`, means no key is available: ask the user to turn on **Settings > Security > Agent API key**. Never ask for, store, or type the instance password.
+- `401 AUTH_REQUIRED` means authentication was rejected: check whether the selected credential is missing, expired, revoked, or invalid without printing it. A set `PORTOS_API_TOKEN` takes precedence over the agent-key file, so a stale injected token can shadow a valid key; obtain a fresh credential through the supported flow. `whoami` answering `"authenticated": false` alone does not prove a missing key, since local requests may be allowed when authentication is disabled. If an external agent needs authentication and no credential is available, ask the user to enable **Settings > Security > Agent API key**. Never ask for, store, or type the instance password.
- Never print the token or paste it into a commit, PR, issue, or chat.
- Public Suno publication and social posting still need the human (root `AGENTS.md`, Security Model).
diff --git a/README.md b/README.md
index 7838be6d18..38ac1fc135 100644
--- a/README.md
+++ b/README.md
@@ -313,7 +313,7 @@ npm run setup
npm start
```
-`npm run setup` (aliased as `npm run install:all`) initializes bundled submodules; installs the root, client, server, and Autofixer dependencies; runs the trusted native rebuilds; prepares runtime data; provisions PostgreSQL, local LLM tooling, and the headless browser; safely attempts a trusted Tailscale certificate; and prints an ordered setup walkthrough. `npm start` builds the client and starts the managed processes with PM2. Before HTTPS is ready, access PortOS locally at `http://localhost:5555`.
+`npm run setup` (aliased as `npm run install:all`) initializes bundled submodules; installs the root, client, server, and Autofixer dependencies; runs the trusted native rebuilds; prepares runtime data; provisions PostgreSQL, local LLM tooling, and the managed browser; safely attempts a trusted Tailscale certificate; and prints an ordered setup walkthrough. `npm start` builds the client and starts the managed processes with PM2. Before HTTPS is ready, access PortOS locally at `http://localhost:5555`.
For a guided setup that also checks optional local media and command-line tooling, run `./setup.sh` instead. It prompts before starting PortOS; choose that option or run `npm start` afterward, not both.
diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md
index 2d9823e890..71db7996b4 100644
--- a/docs/CONTRIBUTING.md
+++ b/docs/CONTRIBUTING.md
@@ -14,6 +14,8 @@ PortOS is a highly opinionated, personal project — a single developer's "every
## Development Setup
+Choose the PostgreSQL backend before running `npm run install:all`: install and start Docker with Compose for the default Docker backend, or set `PGMODE=native` in the repository-root `.env` for a fresh native install. Preserve existing settings and check for a conflicting exported `PGMODE`. Existing installs must retain the backend holding their records; see [SETUP.md](./SETUP.md) before changing it.
+
```bash
# Clone and install
git clone https://github.com/atomantic/PortOS.git
diff --git a/docs/features/browser.md b/docs/features/browser.md
index 728b0d4de2..71f8a13d8f 100644
--- a/docs/features/browser.md
+++ b/docs/features/browser.md
@@ -75,7 +75,7 @@ Stored in `data/browser-config.json`:
```javascript
import { chromium } from 'playwright';
-const browser = await chromium.connectOverCDP('ws://127.0.0.1:5556');
+const browser = await chromium.connectOverCDP('http://127.0.0.1:5556');
const context = browser.contexts()[0];
const page = await context.newPage();
await page.goto('https://example.com');