Messages
Browser sign-in did not finish: the code expired (10 minutes). Run npx @lawdeshield/cli init again.
Where: npx @lawdeshield/cli init output
What it means: Nobody approved the code on lawde.net within 10 minutes. Each code works once.
Fix:
- Run
npx @lawdeshield/cli init again and approve the new code. Or paste a key: npx @lawdeshield/cli init --paste.
Browser sign-in did not finish: the request was denied on lawde.net.
Where: npx @lawdeshield/cli init output
What it means: Someone clicked Deny on the approval page. No key was created.
Fix:
- Run
npx @lawdeshield/cli init again and approve, if the code matches the one in your terminal.
Browser sign-in did not finish: could not reach <url> (<error>).
Where: npx @lawdeshield/cli init output
What it means: The CLI could not connect to LAWDE to get a sign-in code.
Fix:
- Check your connection. Behind a company proxy, paste a key instead:
npx @lawdeshield/cli init --paste.
Too many sign-in codes from this network. Try again in a few minutes.
Where: Browser sign-in (HTTP 429), printed after “Browser sign-in did not finish:” · Code: rate_limited
What it means: Your network asked for many sign-in codes in a short time.
Fix:
- Wait a few minutes, or paste a key:
npx @lawdeshield/cli init --paste.
Browser sign-in is not available right now. Paste a key instead (--paste).
Where: Browser sign-in (HTTP 503) · Code: unavailable
What it means: LAWDE could not start browser sign-in.
Fix:
Unknown code. Run npx @lawdeshield/cli init again.
Where: Browser sign-in (HTTP 404)
What it means: LAWDE has no record of this sign-in code.
Fix:
- Run
npx @lawdeshield/cli init again.
This code was already used.
Where: Browser sign-in (HTTP 410)
What it means: A key was already issued for this code. Each code works once.
Fix:
- Run
npx @lawdeshield/cli init again for a new code.
This code cannot be used. Run npx @lawdeshield/cli init again.
Where: Browser sign-in (HTTP 409)
What it means: The code is no longer in a state that can issue a key.
Fix:
- Run
npx @lawdeshield/cli init again.
This code was not found, was already used, or expired. Run npx @lawdeshield/cli init again.
Where: Approval page on lawde.net · Code: NOT_FOUND
What it means: The code in the link is unknown, already used, or older than 10 minutes.
Fix:
- Run
npx @lawdeshield/cli init again and open the new link.
Only people who can manage API keys in this workspace can approve.
Where: Approval page on lawde.net · Code: FORBIDDEN
What it means: Your role in this workspace cannot create keys.
Fix:
- Ask the workspace owner to approve, or to give you permission to manage API keys.
Pick the app this key is for.
Where: Approval page on lawde.net · Code: APP_REQUIRED
What it means: Each key from browser sign-in is made for one app.
Fix:
- Choose the app, then approve. No apps? Create one on Apps and reload the page.
That app is paused by your plan limits. Activate it in Settings first.
Where: Approval page on lawde.net · Code: APP_DORMANT
What it means: The workspace has more apps than its plan allows, and this app is paused.
Fix:
- Activate the app in Settings, or pick another app.
Your plan allows <limit> active keys. Choose one to replace.
Where: Approval page on lawde.net · Code: KEY_LIMIT
What it means: The workspace already has as many active keys as its plan allows.
Fix:
No package.json in <folder>. Run this in your app's folder, or pass --cwd.
Where: npx @lawdeshield/cli init output
What it means: The command ran outside a Node project.
Fix:
cd into your app, or pass --cwd <folder>.
Could not tell which framework this is (looked for Next.js, Express, Medusa v2 or a Node entry file). Run it in your app folder or pass --cwd <folder>; for a Node server, pass --entry <file>.
Where: npx @lawdeshield/cli init output
What it means: The project has a package.json but no Next.js, Express, Medusa v2 or Node entry file the CLI recognises.
Fix:
- For a Node server, pass the file that starts it:
npx @lawdeshield/cli init --entry src/server.js. - Other stacks: use the manual setup or the HTTP API.
Several packages found. Run again with --cwd <package folder>.
Where: npx @lawdeshield/cli init output (with --yes)
What it means: In a monorepo with more than one app, --yes cannot choose for you.
Fix:
- Pass the package folder:
npx @lawdeshield/cli init --yes --cwd apps/web.
Could not find your server entry file. Run again with --entry <file>, or create lawde.js yourself:
Where: npx @lawdeshield/cli init output (Express / Node)
What it means: The CLI could not find the file that starts your server, so it printed the file to create instead of writing it.
Fix:
- Run again with
--entry <file>, or create the printed lawde.js and import it first in your entry file.
No API key. Pass --key <key> or set LAWDE_API_KEY.
Where: npx @lawdeshield/cli init output (with --yes)
What it means: With --yes there is no one to approve in the browser or paste a key, and no key was given.
Fix:
- Set
LAWDE_API_KEY in the environment (safer than --key, which stays in shell history), or run without --yes.
--app must be an app ID (a UUID). Find it on the app page in the dashboard.
Where: npx @lawdeshield/cli init output
What it means: --app or LAWDE_APP_ID is set to something that is not an app ID, such as the app’s name.
Fix:
- Copy the app ID from Apps, or leave
--app out and use browser sign-in, which sets it for you.
<install command> failed (exit <code>). Nothing else was changed.
Where: npx @lawdeshield/cli init output
What it means: Your package manager could not install @lawdeshield/agent. The CLI stopped before writing any file.
Fix:
- Fix the install error printed above it, then run again. Or install by hand and pass
--no-install.
✗ LAWDE did not store the test error: <reason>
Where: npx @lawdeshield/cli init output (test error)
What it means: LAWDE did not confirm it stored the test error, so the CLI shows ✗, never ✓. The reason wraps the ingest reply, for example “the API key was rejected (Invalid or revoked API key.).” Look up the message in brackets on the API key, app or limits page.
Fix:
- Fix the cause in brackets, then run
npx @lawdeshield/cli init again. Files already written are left unchanged.
the API key was rejected (<message>).
Where: npx @lawdeshield/cli init output (test error reason, HTTP 401)
What it means: LAWDE refused the key. The bracket holds the ingest message, such as “Invalid or revoked API key.”
Fix:
a limit was reached (<message>).
Where: npx @lawdeshield/cli init output (test error reason, HTTP 429)
What it means: A rate limit or the workspace quota stopped the test error.
Fix:
LAWDE answered without confirming the error was stored.
Where: npx @lawdeshield/cli init output (test error reason)
What it means: LAWDE answered with success but without the issue ID that confirms storage, so the CLI does not claim it worked.
Fix:
- Run
npx @lawdeshield/cli init again. If it repeats, check --url (or LAWDE_URL) points at https://www.lawde.net.
✗ No API key, so no test error was sent.
Where: npx @lawdeshield/cli init output
What it means: The run ended without a key, so nothing could be checked against LAWDE.
Fix:
- Run again and approve in the browser, paste a key with
--paste, or set LAWDE_API_KEY.