The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
feat: auto-open browser after onboard completes
Dotta4292c28654b8
diff --git a/cli/src/commands/onboard.ts b/cli/src/commands/onboard.tsindex b73cfcadfd..f283c63651 100644--- a/cli/src/commands/onboard.ts+++ b/cli/src/commands/onboard.ts@@ -272,6 +272,7 @@ export async function onboard(opts: OnboardOptions): Promise<void> {}if (shouldRunNow && !opts.invokedByRun) {+ process.env.PAPERCLIP_OPEN_ON_LISTEN = "true";const { runCommand } = await import("./run.js");await runCommand({ config: configPath, repair: true, yes: true });return;diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 543fa0d0b5..502d6f9237 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -188,6 +188,9 @@ importers:multer:specifier: ^2.0.2version: 2.0.2+ open:+ specifier: ^11.0.0+ version: 11.0.0pino:specifier: ^9.6.0version: 9.14.0@@ -2902,6 +2905,10 @@ packages:resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==}+ resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==}engines: {node: '>=10.16.0'}@@ -3062,6 +3069,18 @@ packages:resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==}engines: {node: '>=6'}+ resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-H9LMLr5zwIbSxrmvikGuI/5KGhZ8E2zH3stkMgM5LpOWDutGM2JZaj460Udnf1a+946zc7YBgrqEWwbk7zHvGw==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==}@@ -3473,9 +3492,23 @@ packages:resolution: {integrity: sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==}+ resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}+ hasBin: true+resolution: {integrity: sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==}+ resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==}+ engines: {node: '>=20'}++ resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==}+ engines: {node: '>=14.16'}+ hasBin: true+resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==}engines: {node: '>=12'}@@ -3483,6 +3516,10 @@ packages:resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==}+ resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==}+ engines: {node: '>=16'}+resolution: {integrity: sha512-PIeMbHqMt4DnUP3MA/Flc0HElYjMXArsw1qwJZcm9sqR8mq3l8NYizFMty0pWwE/tzIGH3EKK5+jes5mAr85yw==}@@ -3899,6 +3936,10 @@ packages:resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}+ resolution: {integrity: sha512-smsWv2LzFjP03xmvFoJ331ss6h+jixfA4UUV/Bsiyuu4YJPfN+FIQGOIiv4w9/+MoHkfkJ22UIaQWRVFRfH6Vw==}+ engines: {node: '>=20'}+resolution: {integrity: sha512-AlWY719RF02ujitly7Kk/0QlV+pXGFDHrHf9O2OKqyqgBieaPOIeuSkL8sRK6j2WK+/ZAURq2kZsY0d8JapUiw==}@@ -4008,6 +4049,10 @@ packages:resolution: {integrity: sha512-d+JFcLM17njZaOLkv6SCev7uoLaBtfK86vMUXhW1Z4glPWh4jozno9APvW/XKFJ3CCxVoC7OL38BqRydtu5nGg==}engines: {node: '>=12'}+ resolution: {integrity: sha512-dM0jVuXJPsDN6DvRpea484tCUaMiXWjuCn++HGTqUWzGDjv5tZkEZldAJ/UMlqRYGFrD/etByo4/xOuC/snX2A==}+ engines: {node: '>=20'}+resolution: {integrity: sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==}engines: {node: '>=6'}@@ -4178,6 +4223,10 @@ packages:resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==}engines: {node: '>= 18'}+ resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==}engines: {node: '>=6'}@@ -4606,6 +4655,10 @@ packages:utf-8-validate:optional: true+ resolution: {integrity: sha512-g/eziiSUNBSsdDJtCLB8bdYEUMj4jR7AGeUo96p/3dTafgjHhpF4RiCFPiRILwjQoDXx5MqkBr4fwWtR3Ky4Wg==}+ engines: {node: '>=20'}+resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==}engines: {node: '>=0.4'}@@ -7771,6 +7824,10 @@ snapshots:base64-js: 1.5.1ieee754: 1.2.1+ dependencies:+ run-applescript: 7.1.0+dependencies:streamsearch: 1.1.0@@ -7908,6 +7965,15 @@ snapshots:+ [email protected]: {}++ dependencies:+ bundle-name: 4.1.0+ default-browser-id: 5.0.1++ [email protected]: {}+@@ -8356,12 +8422,24 @@ snapshots:+ [email protected]: {}++ [email protected]: {}++ dependencies:+ is-docker: 3.0.0++ dependencies:+ is-inside-container: 1.0.0+@@ -9015,6 +9093,15 @@ snapshots:dependencies:wrappy: 1.0.2+ dependencies:+ default-browser: 5.5.0+ define-lazy-prop: 3.0.0+ is-in-ssh: 1.0.0+ is-inside-container: 1.0.0+ powershell-utils: 0.1.0+ wsl-utils: 0.3.1+@@ -9155,6 +9242,8 @@ snapshots:+ [email protected]: {}+@@ -9427,6 +9516,8 @@ snapshots:transitivePeerDependencies:- supports-color+ [email protected]: {}+dependencies:mri: 1.2.0@@ -9843,6 +9934,11 @@ snapshots:+ dependencies:+ is-wsl: 3.1.1+ powershell-utils: 0.1.0+diff --git a/server/package.json b/server/package.jsonindex f8e9ff4fa6..34e9efcbcd 100644--- a/server/package.json+++ b/server/package.json@@ -11,19 +11,20 @@"typecheck": "tsc --noEmit"},"dependencies": {+ "@aws-sdk/client-s3": "^3.888.0","@paperclipai/adapter-claude-local": "workspace:*","@paperclipai/adapter-codex-local": "workspace:*","@paperclipai/adapter-openclaw": "workspace:*","@paperclipai/adapter-utils": "workspace:*","@paperclipai/db": "workspace:*","@paperclipai/shared": "workspace:*",- "@aws-sdk/client-s3": "^3.888.0","better-auth": "^1.3.8","detect-port": "^2.1.0","dotenv": "^17.0.1","drizzle-orm": "^0.38.4","express": "^5.1.0","multer": "^2.0.2",+ "open": "^11.0.0","pino": "^9.6.0","pino-http": "^10.4.0","pino-pretty": "^13.1.3",diff --git a/server/src/index.ts b/server/src/index.tsindex a99cf2b936..7e9bca2aaf 100644--- a/server/src/index.ts+++ b/server/src/index.ts@@ -497,6 +497,18 @@ if (config.heartbeatSchedulerEnabled) {server.listen(listenPort, config.host, () => {logger.info(`Server listening on ${config.host}:${listenPort}`);+ if (process.env.PAPERCLIP_OPEN_ON_LISTEN === "true") {+ const openHost = config.host === "0.0.0.0" || config.host === "::" ? "127.0.0.1" : config.host;+ const url = `http://${openHost}:${listenPort}`;+ void import("open")+ .then((mod) => mod.default(url))+ .then(() => {+ logger.info(`Opened browser at ${url}`);+ })+ .catch((err) => {+ logger.warn({ err, url }, "Failed to open browser on startup");+ });+ }printStartupBanner({host: config.host,deploymentMode: config.deploymentMode,