Open source

Set up Doorman with OpenCode

Open-source terminal agent that works with many model providers. Runs in: Terminal.

  1. Paste this prompt into OpenCode

    Open your site's project and paste it. It works on its own: your agent reads /llms.txt, signs you up and wires your forms over plain HTTP.

    Add Doorman spam protection to this project's forms. Follow https://withdoorman.com/llms.txt. Ask me which email should receive real submissions before signing up.
  2. Optional: add Doorman's MCP server

    Gives OpenCode Doorman's tools directly: sign up, configure forms, get install code, run tests and review held submissions. Add it in opencode.json:

    opencode.json
    {
      "mcp": {
        "doorman": {
          "type": "remote",
          "url": "https://withdoorman.com/mcp",
          "headers": { "Authorization": "Bearer {env:DOORMAN_KEY}" }
        }
      }
    }

    MCP config formats change between versions of OpenCode. If this doesn't connect, check its MCP docs; the prompt above works either way.

  3. Answer one question

    Your agent asks which email should receive real submissions, then creates the account, wires the form, stores the key in .env and runs one genuine and one spam test. Confirm your email from the link we send you.

Other agents