Before you start
- A coding agent that can run shell commands in your repository.
- An ingest key, saved in your secret store as
SQUASHER_API_KEY. The prompt does not contain the key. To create one, see Create an ingest key.
Start with nothing installed
A coding agent can do the full setup from a terminal, without the dashboard. Tell the agent:- Install the Squasher CLI and sign in. You approve the sign-in in your browser.
- Find the framework of your app from its manifests, and tell you what it found.
- Create a project or pick one.
- Create an ingest-only key with
squasher api-keys create --ingest-only --write-env <file>. The key goes to an env file that Git ignores. The agent never sees or prints the key. - Install the SDK in the real start code of the app.
- Send one test error with a unique name through the real code of the app.
- Confirm the error with
squasher verify, and show you the issue title and URL. - Ask you if it can remove the test error.
squasher init prints the same guide.
Copy the prompt
- Open your project and select Settings in the sidebar, then the Setup tab.
- Under 2. Connect your app, select Agent prompt.
- Select Copy setup prompt, and paste the prompt into your coding agent.
Use the general prompt
The general prompt works in any repository, before you open the dashboard. It has no project details, so setSQUASHER_API_KEY and SQUASHER_PROJECT_ID in the agent’s environment first.
What the agent does
1
Installs the Squasher agent tools
The agent runs this command, which adds the Squasher skills to the agent and connects the
Squasher MCP server:
2
Adds Squasher to your app
The agent reads the
squasher-onboard skill, finds the app or
service that should send data, and adds the matching SDK or OpenTelemetry setup.
3
Sets the key and the project ID
The agent reads
SQUASHER_API_KEY from your secret store and sets SQUASHER_PROJECT_ID. The
prompt tells it not to print, paste, or commit the key.4
Sends one test error
The agent makes the app throw one test error through its real code path, for example a request
to a route that throws. It does not send the error from a separate script.
5
Reports the issue
The agent checks the stack trace of the new issue, then tells you the issue title and URL and
the code changes.
Watch the progress
The agent reports each stage with the MCP operationonboarding.updateStatus. While it works,
the Setup page shows each stage under Agent progress: connect the agent, analyze the
project, create or pick the project, install the SDK, receive the test error, check the stack
trace, and done. When the test error arrives, the page links to its issue.
Squasher marks the test error stage as done only when a real error event arrives in the project
after the agent started. An agent cannot mark it done without one. See
Agent onboarding progress.
Check the test event
The ingest key can send data, but it cannot read the setup status. Check the event in one of these ways:- On the Setup page, under 3. Verify the first event, select Check again. When Squasher finds an error or log event from the last 24 hours, the page shows Error received or Log received.
- If the Squasher CLI is installed, ask the agent to sign in with
squasher login, then runsquasher verify --project <project_id> -- <dev command>. The command starts the app, waits for the first new issue, and prints its title and URL.squasher projects setup <project_id>shows the setup status. The installer above installs the CLI. - Ask the agent to call the MCP operation
projects.setup.
Install the agent tools without the prompt
You can run the installer yourself. It shows each command and asks before it runs it, unless you add-y.
The installer adds four skills:
squasher-onboard, squasher-telemetry-audit, squasher-cli,
and squasher-mcp. It needs npx for the skills. It connects the MCP server to the coding agents
that it finds on your computer. If it finds none, add the MCP URL by hand. See
MCP.
Next steps
Use Squasher from an AI agent
Read the docs as Markdown, and use the MCP server, CLI, or API.
Quickstart
Do the setup yourself instead.