Install with AI
Paste one prompt into Claude Code, Cursor or any coding agent and let it set up Foxchat for you.
Let your AI coding agent install Foxchat for you. Paste one prompt, approve once in the browser, and the agent does the rest: it creates your account and project, allows your domains, and adds the embed code to the right file in your codebase.
The prompt
Paste this into Claude Code, Cursor, Codex, Windsurf, GitHub Copilot or any other coding agent that can browse the web and run commands:
Set up https://foxchat.dev/setup in this project.
What happens
- The agent reads the setup guide at foxchat.dev/setup. It's written for AI agents.
- You approve once. The agent gives you a link like
app.foxchat.dev/device?code=BCDF-GHJK. Open it, sign up for free (or log in), check that the code matches, and click Approve. - The agent sets up your project. It works out your site's name and URL from the codebase, then creates a Foxchat project (or reuses an existing one for the same site). It also adds
localhostto the allowed domains so you can test locally. - The agent adds the widget. It detects your framework (Next.js, Vite, Astro, Remix, Nuxt, SvelteKit, Rails, WordPress and more) and adds the script tag to the right layout file.
- You connect Slack. The agent finishes with a link to connect Slack, which takes one click in the browser. Until then, messages still arrive in your Foxchat inbox.
What the agent can access
Approving gives the agent a token that expires after 24 hours. With it, the agent can:
- See your projects and account status
- Create a project and get its embed code
- Add allowed domains to a project's widget
It can't read conversations, change billing, connect Slack or delete anything. The token is never written to your codebase.
Prefer to do it yourself?
Follow the manual guide: Add Widget to Your Website.
