{
  "name": "Freebuff Docs",
  "description": "Official Freebuff documentation: the agent, plans and allowances, Sites, and getting help.",
  "origin": "https://docs.freebuff.page",
  "docs": "https://docs.freebuff.page/api/docs",
  "source": "https://github.com/youlianvr/freebuff-docs",
  "generated": "2026-11-07T00:16:19.205Z",
  "counts": {
    "pages": 35
  },
  "pages": [
    {
      "path": "/",
      "url": "https://docs.freebuff.page/",
      "title": "Freebuff Docs",
      "description": "Official Freebuff documentation: the agent, plans and allowances, Sites, and getting help.",
      "section": "Home",
      "headings": [
        {
          "id": "start-here",
          "text": "Start here",
          "level": 2,
          "url": "https://docs.freebuff.page/#start-here"
        },
        {
          "id": "plans",
          "text": "Plans and account",
          "level": 2,
          "url": "https://docs.freebuff.page/#plans"
        },
        {
          "id": "sites",
          "text": "Sites and hosting",
          "level": 2,
          "url": "https://docs.freebuff.page/#sites"
        },
        {
          "id": "fixes",
          "text": "When something breaks",
          "level": 2,
          "url": "https://docs.freebuff.page/#fixes"
        },
        {
          "id": "first-change",
          "text": "Your first change in five minutes",
          "level": 2,
          "url": "https://docs.freebuff.page/#first-change"
        },
        {
          "id": "where-to-go-next",
          "text": "Where to go next",
          "level": 2,
          "url": "https://docs.freebuff.page/#where-to-go-next"
        }
      ],
      "text": "# Everything you need to ship with Freebuff.\n\nYour coding agent, from first idea to finished project. Find your way around Freebuff, learn what’s possible, and get back to building.\n\nWhat would you like to know?\nSearch the documentationCtrl K\n\nGetting started\nDesktop & Cloud\nTroubleshooting\n\n## Start here\n\nNew to Freebuff? Read these in order — none of them is long.\n\n-\n\nWhat is Freebuff?\nThe mental model: a goal-driven agent with a real workspace, not a chat window.\n\n-\n\nGetting started\nDownload, sign in, open a project and get your first verified change.\n\n-\n\nDesktop and Cloud\nTwo places to work, two different promises about where your files end up.\n\n-\n\nMission mode\nGive the agent a goal and let a judge model keep it working until it is done.\n\n## Plans and account\n\nHours, regions, teammates — the parts people ask about first.\n\n-\n\nPlans and allowances\nFree hours per region, Starter, Plus and Pro, streaks and how balance is spent.\n\n-\n\nCountry verification\nWhen it is required, why it expires, and what to do when the check fails.\n\n-\n\nCollaborators\nInvite someone to a Cloud project, and know whose balance pays for what.\n\n## Sites and hosting\n\nPublish what you built, with numbers instead of guesses.\n\n-\n\nSites\nPreview and production on Cloudflare Workers for Platforms, minus the billing setup.\n\n-\n\nLimits and invocations\nThe real daily and monthly quotas, what an invocation is, and how to spend fewer.\n\n-\n\nStorage and data\nSQLite and object storage, the 100 MB and 1 GB ceilings, and what counts as a write.\n\n-\n\nCustom domains\nPoint your own hostname at a site and survive the 24–48 hour DNS wait.\n\n## When something breaks\n\nMost reports are one of these. Each page starts with the check that separates causes.\n\n-\n\nConnection problems\n\"No internet\" while the website works: isolate the app, the network, VPN and DNS.\n\n-\n\nApp crashes or won't start\n\"Already open\", Windows without AVX2, Linux EACCES, CLI update and reinstall.\n\n-\n\nSession logs\nEvery session is stored on your device; here is where, and how to read it safely.\n\n-\n\nGet help\nWhere tickets go, who handles what, and the details that get you an answer faster.\n\n## Your first change in five minutes\n\n- Open a projectPick a folder in Desktop, or select a GitHub repository for Cloud.\n\n- Describe an outcomeSay what should be true when you are done, not which files to touch.\n\n- Watch the loopThe agent reads, edits, runs checks and reports back.\n\n- Review and keepInspect the diff, then accept, commit or ask for changes.\n\nThese pages are written from the product as it ships today, including the numbers:\nplan allowances, Sites quotas and storage ceilings are the exact figures support\nquotes. Limits do change, so if the dashboard disagrees with a table here, the\ndashboard is right.\n\n## Where to go next\n\nIf you already have a project, jump to working with the agent.\nIf you have something worth publishing, start with Sites and keep\nthe quotas open in a second tab.\nIf the app is misbehaving, connection problems and\nstartup failures cover most reports. And if none of it\nexplains what you see, the Discord server is where a human answers:\ndiscord.com/invite/freebuff."
    },
    {
      "path": "/what-is-freebuff/",
      "url": "https://docs.freebuff.page/what-is-freebuff/",
      "title": "What is Freebuff?",
      "description": "A coding agent with a real workspace — what it can do, where it runs, and what it still needs from you.",
      "section": "Start here",
      "headings": [
        {
          "id": "where-it-runs",
          "text": "Where you can run it",
          "level": 2,
          "url": "https://docs.freebuff.page/what-is-freebuff/#where-it-runs"
        },
        {
          "id": "what-it-does",
          "text": "What the agent actually does in a turn",
          "level": 2,
          "url": "https://docs.freebuff.page/what-is-freebuff/#what-it-does"
        },
        {
          "id": "what-it-needs",
          "text": "What it still needs from you",
          "level": 2,
          "url": "https://docs.freebuff.page/what-is-freebuff/#what-it-needs"
        },
        {
          "id": "long-running",
          "text": "Long-running work",
          "level": 2,
          "url": "https://docs.freebuff.page/what-is-freebuff/#long-running"
        },
        {
          "id": "what-it-costs",
          "text": "What it costs",
          "level": 2,
          "url": "https://docs.freebuff.page/what-is-freebuff/#what-it-costs"
        },
        {
          "id": "publishing",
          "text": "Publishing what you build",
          "level": 2,
          "url": "https://docs.freebuff.page/what-is-freebuff/#publishing"
        }
      ],
      "text": "Freebuff is an AI coding agent. You describe an outcome, and it works on your project\ndirectly: it reads the code, edits files, runs commands, checks the result and reports\nback. The important part is the workspace — the agent is not describing a change in a\nchat, it is making the change and then proving it works.\n\n## Where you can run it\n\nThe same agent is available through four surfaces, and they differ in one thing that\nmatters: where your files live.\n\n- Desktop — works on a folder on your computer. This is where existing projects belong.\n\n- Cloud — works in the browser on a copy stored with Freebuff. Good for new projects and for publishing.\n\n- CLI — the terminal client, same agent, same local files, scriptable.\n\n- iOS and Android app — for checking on work and answering the agent from a phone.\n\nDesktop and Cloud explains the trade-offs, and\nmoving a project to Cloud covers the two routes for\ngetting changes back.\n\n## What the agent actually does in a turn\n\nA turn is a loop, not a single answer. In one turn the agent may read several files,\nmake an edit, run the test suite, notice the test fails, fix the fix, and re-run it.\nIt stops when the work is verifiably done, or when it needs something only you have:\na decision, a credential, or a detail it cannot infer.\n\nIt can also call tools beyond the filesystem. MCP servers add capabilities such as\nbrowser automation, 3D tooling or game engine control, and connectors let it act in\nother apps you have connected. See MCP servers and\nintegrations.\n\n## What it still needs from you\n\n- A goal with an end condition. \"Make the checkout faster\" is a wish; \"cut checkout API calls to one per order and keep the tests green\" is a task.\n\n- Review. The agent verifies behaviour, not taste. You decide whether the result is what you wanted.\n\n- Decisions it cannot make. When it asks, answer — a wrong assumption costs more than a question.\n\n## Long-running work\n\nOrdinary turns hand control back to you. Mission mode is the\nopposite: you write a goal, and a second model judges each finished turn and either\nkeeps the agent going or stops it. Use it for work you would otherwise babysit — a\nmigration, a test suite that needs to go green, a feature with a clear definition of done.\n\n## What it costs\n\nFreebuff is free within a daily allowance, and paid plans raise that allowance. Balance\nis measured in hours, one hour being five freebucks, and models carry a multiplier.\nThe exact figures, region by region, are in\nplans and allowances.\n\n## Publishing what you build\n\nCloud projects publish through Freebuff Sites, which runs on\nCloudflare Workers for Platforms. You get a preview and a production environment, a\ndatabase and file storage, and a shared quota pool documented in\nlimits and invocations. Nothing about Sites\nlocks you in: the repo is yours, the data can be exported, and\ntaking it elsewhere is a supported path.\n\nThe best source of answers is the community server, where the team and other users\nare. Join at discord.com/invite/freebuff,\nthen read get help before opening a ticket so your post has\neverything needed for a first real answer."
    },
    {
      "path": "/getting-started/",
      "url": "https://docs.freebuff.page/getting-started/",
      "title": "Getting started",
      "description": "From the installer to your first reviewed change, with the checks that keep you out of trouble.",
      "section": "Start here",
      "headings": [
        {
          "id": "install",
          "text": "Install and sign in",
          "level": 2,
          "url": "https://docs.freebuff.page/getting-started/#install"
        },
        {
          "id": "first-project",
          "text": "Open a project",
          "level": 2,
          "url": "https://docs.freebuff.page/getting-started/#first-project"
        },
        {
          "id": "first-task",
          "text": "Ask for something specific",
          "level": 2,
          "url": "https://docs.freebuff.page/getting-started/#first-task"
        },
        {
          "id": "review",
          "text": "Review the result",
          "level": 2,
          "url": "https://docs.freebuff.page/getting-started/#review"
        },
        {
          "id": "next",
          "text": "Next steps",
          "level": 2,
          "url": "https://docs.freebuff.page/getting-started/#next"
        }
      ],
      "text": "## Install and sign in\n\n- Download the desktop appGet the installer for your platform from freebuff.com/desktop. You usually do not need to uninstall an older version first.\n\n- Sign inDesktop and Cloud both use your Freebuff account, so the first launch asks you to sign in.\n\n- Update if anything looks oddThe app updates itself, but a stale build explains a surprising number of strange reports. Install the latest version before you spend an hour debugging.\n\nPrefer the terminal? Install the CLI with npm install -g freebuff@latest,\ncheck it with freebuff -v, and run freebuff in a project\nfolder. The CLI and Desktop share the same account and the same MCP configuration file.\n\n## Open a project\n\nIn Desktop, pick a folder on your machine. The agent works directly on those files, so\nstart with something under version control — if a change goes wrong, git diff\nis your undo.\n\nFor a new project, or for anything you plan to publish, use a Cloud project instead, or\nstart from a repository: in the project selector above the composer choose\nSelect GitHub repository, pick the repo and branch, then Use repository.\nThe exact steps, including getting the results back onto your computer, are in\nmoving code between local and Cloud.\n\n## Ask for something specific\n\nA good first request names an outcome and a way to check it. Compare these:\n\nWeak request | Why it fails |\n\n\"Improve the app\" | No end state, so the agent picks one for you and guesses wrong. |\n\n\"Add a settings page with a theme switch, persisted per user, and make sure the existing tests still pass\" | Names the outcome, the constraint and the check. |\n\n## Review the result\n\nRead the diff before you accept it. The agent verifies that the code runs and the tests\npass; it cannot tell you whether the design is right or whether you wanted the column\nin that order. When something is off, say what is wrong and what the boundary is —\n\"keep the change to the settings page, revert the styling elsewhere\" — rather than\nstarting over.\n\nA Cloud chat works on a copy of your project. Changes made in Cloud\nare not copied back to your computer automatically. If you need them locally, use the\nGitHub route in local to Cloud.\n\n## Next steps\n\n- Working with the agent — briefs, review, and how to stop a loop going sideways.\n\n- Mission mode — when you want the agent to keep going on its own.\n\n- Sites — publish a preview the moment something works.\n\n- Plans and allowances — what your daily hours are and how they are spent."
    },
    {
      "path": "/working-with-the-agent/",
      "url": "https://docs.freebuff.page/working-with-the-agent/",
      "title": "Working with the agent",
      "description": "What the agent actually is, which tools it has on each surface, how Plan and Build differ, and how to brief it so the result is checkable.",
      "section": "Start here",
      "headings": [
        {
          "id": "model",
          "text": "Model, agent, tool, runtime",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#model"
        },
        {
          "id": "turn",
          "text": "One request, step by step",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#turn"
        },
        {
          "id": "base3",
          "text": "The main agent",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#base3"
        },
        {
          "id": "tools",
          "text": "The tool groups",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#tools"
        },
        {
          "id": "modes",
          "text": "Plan and Build",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#modes"
        },
        {
          "id": "plan",
          "text": "Plan",
          "level": 3,
          "url": "https://docs.freebuff.page/working-with-the-agent/#plan"
        },
        {
          "id": "build",
          "text": "Build",
          "level": 3,
          "url": "https://docs.freebuff.page/working-with-the-agent/#build"
        },
        {
          "id": "surfaces",
          "text": "Desktop, CLI and Cloud",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#surfaces"
        },
        {
          "id": "browser",
          "text": "Browser and preview",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#browser"
        },
        {
          "id": "terminal",
          "text": "The visible terminal",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#terminal"
        },
        {
          "id": "subagents",
          "text": "Helper agents",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#subagents"
        },
        {
          "id": "skills",
          "text": "Skills",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#skills"
        },
        {
          "id": "agents-md",
          "text": "AGENTS.md",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#agents-md"
        },
        {
          "id": "memory",
          "text": "Long conversations",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#memory"
        },
        {
          "id": "security",
          "text": "What to keep in mind",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#security"
        },
        {
          "id": "brief",
          "text": "Brief it like a ticket",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#brief"
        },
        {
          "id": "scope",
          "text": "Keep the scope where you put it",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#scope"
        },
        {
          "id": "questions",
          "text": "When it stops to ask",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#questions"
        },
        {
          "id": "verify",
          "text": "What \"verified\" means",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#verify"
        },
        {
          "id": "loops",
          "text": "When a turn goes in circles",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#loops"
        },
        {
          "id": "parallel",
          "text": "Parallel work",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#parallel"
        },
        {
          "id": "hands-off",
          "text": "Hands-off work",
          "level": 2,
          "url": "https://docs.freebuff.page/working-with-the-agent/#hands-off"
        }
      ],
      "text": "The agent is not a chat window that produces text. It is a loop: it reads the project,\ndecides on an action, calls a tool, reads the result, and decides again until the task is\ndone or it needs something from you. Everything else on this page follows from that.\n\nLoop request → context → decision → tool call → result → next step\n\nModes Plan (read-only) · Build (can change files)\n\nSurfaces Desktop · CLI · Cloud\n\nSubagents up to 6 per spawn_agents call · up to 20 concurrent in Projects\n\n## Model, agent, tool, runtime\n\nFour different things that are easy to collapse into one word:\n\nLayer | What it decides |\n\nModel | Generates the reply and chooses the next action |\n\nAgent | Gives the model a role, instructions, project context and a set of tools |\n\nTool | Performs one concrete action: read a file, search text, run a command, open a page |\n\nRuntime | Decides where that action happens — your machine or a cloud workspace |\n\nThis is why two sessions on the same model behave differently: different tools, different\nfiles, different instructions, different limits.\n\n## One request, step by step\n\n- RequestYour message arrives with the project context the surface can see.\n\n- InvestigateThe agent lists, searches and reads before it changes anything.\n\n- DecideIt picks one action at a time — a tool call, a question, or an answer.\n\n- Read the resultOutput goes back into the context, including errors and empty results.\n\n- Repeat or reportIt continues until the task is done, blocked, or needs your input.\n\nThe instructions tell the agent to check its own result and to report checks it could not\nrun. That is a rule it follows, not an independent audit: when a reply says \"fixed\", the\nevidence is the diff and the commands that actually ran.\n\n## The main agent\n\nFreebuff's main loop is called base3: one agent investigates, edits and\nverifies with its own tools. Helper agents exist, but they are additions — a research\nassistant, and in some configurations code subagents — not the default shape of a turn.\nDefinitions for other agents exist in the repository; their presence is not a promise that\na given account or release runs them.\n\n## The tool groups\n\nThe exact set depends on the surface, the mode, your connections and the run itself. These\nare the groups you will see in practice.\n\nGroup | Tools | What to expect |\n\nFind and read |\nlist_directory · glob · code_search · read_files |\nLarge files can be read by line range, so a shown excerpt is not proof the whole file was seen |\n\nEdit |\nstr_replace · write_file |\nstr_replace needs an exact match; write_file replaces a file whole |\n\nRun |\nrun_terminal_command |\nTests, builds, linters, installs — real actions with real side effects |\n\nPost-change checks |\nrun_file_change_hooks |\nRuns your configured hooks for changed files, when hooks exist and the tool is available |\n\nWeb |\nweb_search · read_url · researcher-web |\nThe researcher is a separate helper for multi-source questions; it is not offered in every run |\n\nBrowser |\nnavigate · read page · click · type · console and network · screenshot |\nDesktop only; see Browser and preview |\n\nTerminal panel |\nterminal_open · terminal_list · terminal_read · terminal_write |\nA terminal you can see and type into yourself |\n\nConnected apps |\nsearch_integration_tools · get_integration_tool_schemas · run_integration_tools · connect_integration |\nOnly for accounts you connected — see Integrations |\n\nMCP |\nsearch_mcp_tools · call_mcp_tool |\nOnly servers you added and approved — see MCP servers |\n\nSites |\nsites_list · sites_inspect · sites_create · sites_add_storage · sites_enable_auth · sites_deploy · sites_set_secret · sites_set_published |\nRead-only in Plan mode; see Sites |\n\nService research |\nGravity Index |\nFinds and compares third-party services; creating an account there needs your explicit yes |\n\nSkills |\nskill loader |\nLoads a named instruction set on demand |\n\nBackground commands work differently per surface. Desktop and the CLI can run a process in\nthe background; a Cloud command is synchronous and time-limited, and long-running work uses\nthe Cloud-specific mechanism instead.\n\n## Plan and Build\n\n### Plan\n\nPlan is for understanding a task and writing the plan without touching the project. File\nwrites and changing commands are refused. When the plan is ready the agent exits the plan\nand you approve it or ask for a revision — saying \"do it\" inside Plan does not quietly\nconvert the turn into Build.\n\n### Build\n\nBuild can edit files and run commands within the task. The Desktop instructions still say\nnot to commit, push or open a pull request unless you asked; that is a rule the agent\nfollows, not a technical lock.\n\nDo not project Desktop's Plan mode onto the CLI. In the CLI the root agent is tied to the\nselected model and an internal lite mode, so confirm the behaviour of your installed\nversion instead of assuming.\n\n## Desktop, CLI and Cloud\n\n| Desktop | CLI | Cloud |\n\nWhere files live | Your folder on your machine | Your working directory | The chat's workspace copy |\n\nWho runs commands | Your OS user | Your OS user | The cloud workspace |\n\nUI tools | Browser, preview, terminal panel | Questions, next-step suggestions, render_ui | Dev-server preview only |\n\nExtra helpers | Research and, in some runs, code subagents | Skills, service research | Cloud Projects subagents |\n\nThe desktop is not a sandbox: choosing a folder scopes the agent's work, it does not isolate\nthe operating system. Commands run with your user's permissions and can reach beyond that\nfolder, and administrator rights are never granted implicitly. See\nDesktop and Cloud for where files actually live.\n\n## Browser and preview\n\nIn Desktop the agent can drive a browser: open an address, read the page structure, click,\ntype, follow navigation, read console and network activity, screenshot, and change the\nviewport. The preview tool shows either a running local dev server or a suitable HTML file\nfrom the workspace.\n\n- Reading the DOM is not a visual design review.\n\n- A 200 response is not proof that every button works.\n\n- Seeing a login page is not a completed sign-in.\n\nWhen the browser or the tool is unavailable, the honest report is that it was not checked —\nand a preview server is not a Sites publication. See Sites.\n\n## The visible terminal\n\nBesides plain command execution, the agent can open a terminal panel you share, list open\nterminals, read recent output and send input or a key. That is what makes interactive\nprograms usable. The panel is yours too, so the agent reads before it types, and anything\nsensitive — a password, a one-time code — is better typed by you than sent through the chat.\n\n## Helper agents\n\nA subagent gets one delegated job: locate a piece of code, study external documentation,\ninvestigate an independent part of a problem, or — where access allows — do a self-contained\npiece of code work. The result comes back to the main agent, which stays responsible for the\nanswer.\n\n- Six per call. A single spawn request can carry up to six helpers.\n\n- Twenty at once. With Projects access, up to twenty code subagents can run concurrently in a session.\n\n- Not everywhere. Full code subagents are offered only under Projects access, not in Plan, and not on sponsored runs.\n\nThose are implementation limits, not a target. Small or tightly coupled work is usually\nfaster done by the main agent alone.\n\n## Skills\n\nA skill is a set of instructions and supporting files for one kind of task — a release\nchecklist, a testing procedure, a service integration. Loading one makes the agent follow\nthat process; it does not change the model and does not guarantee an outcome. Treat\nthird-party skills as code you are about to run: read what they ask for.\n\n## AGENTS.md\n\nAGENTS.md is how a project states its own rules: layout, verification commands,\nconventions. It is context, not proof — instructions can be stale or contradict the code,\nso a change still has to be checked. In Cloud, an Include AGENTS.md setting decides\nwhether project instructions are included, and settings differ between clients.\n\n## Long conversations\n\nContext is finite. As a conversation grows, the history is compressed into a summary that\ntries to keep the goal, the decisions, the state of the work and the important files. It\ndoes not guarantee every detail survives.\n\n- Restate hard requirements when the task changes.\n\n- Ask the agent to re-read the current files instead of trusting an old message.\n\n- Keep long-lived project rules in AGENTS.md, where they are read fresh.\n\n## What to keep in mind\n\n- No OS sandbox. Commands run with your user's rights.\n\n- Unknown projects can carry executable settings. The CLI asks before trusting project-level agent or MCP configuration, and trust is tied to a directory — verify changes to it yourself.\n\n- Tools change the world. Publishing, deleting, Git commands and integrations deserve a second look before they run.\n\n- Keys do not belong in chat. Locally they go in the environment; on Sites they go in Secrets (API keys).\n\n- Pages and tool output are data. Text that says \"ignore your instructions\" is text, not an instruction.\n\n- \"Verified\" needs a noun. Which command ran, which URL returned what, what remains unchecked.\n\n## Brief it like a ticket\n\nA reliable brief answers three questions: what to do, where, and how you will know.\n\n- The outcome — what is true when the task is done.\n\n- The boundary — what it may touch and what it must leave alone.\n\n- The check — the command, test or URL that proves it.\n\n```\nFix the sign-in button. Don't change the design.\nCover the failed-auth path with a test and run the existing suite.\n```\n\n```\nFind out why sign-in is broken. Change nothing yet —\nshow me the cause and propose a fix.\n```\n\n\"Make login safer\" is a wish, and a wish is where scope creep starts.\n\n## Keep the scope where you put it\n\nBroad briefs produce broad diffs. When a result drifts, name the boundary in the follow-up\n— \"keep the change to the settings page, revert the styling elsewhere\" — instead of\nstarting over.\n\n## When it stops to ask\n\nA turn that pauses for a decision, a credential or a missing detail is working as designed.\nAnswer with the specific value rather than \"whatever you think\": otherwise the agent picks\nsomething reasonable and you review a decision you never made.\n\n## What \"verified\" means\n\nThe agent reports what it ran, not what it believes. A green build is evidence about the\nbuild. A test that was never executed is a limitation, and it should be reported as one.\n\n## When a turn goes in circles\n\n- Stop and restate. Interrupt, then give the goal, the boundary and the failing check in one message.\n\n- Shrink the task. \"Fix the failing snapshot test\" beats \"finish the migration\" when the agent is stuck.\n\n- Give the error, not the summary. Paste the actual output; it usually changes the approach.\n\n- Start clean if context is poisoned. A fresh chat with the relevant files beats arguing with a long one.\n\n## Parallel work\n\nSeparate chats keep separate context, so parallel tasks do not contaminate each other. Two\nCloud chats also keep separate copies of the files, which makes the merge step — through\nGit — yours. See Git and deploy.\n\n## Hands-off work\n\nWhen the task is long but the definition of done is clear, stop babysitting it:\nMission mode lets a judge model decide whether the agent should\nkeep going, and stops it when the goal is reached or a human is needed."
    },
    {
      "path": "/mission-mode/",
      "url": "https://docs.freebuff.page/mission-mode/",
      "title": "Mission mode",
      "description": "Give the agent a goal and let a judge model keep it working until the goal is actually met.",
      "section": "Start here",
      "headings": [
        {
          "id": "how-it-works",
          "text": "How it works",
          "level": 2,
          "url": "https://docs.freebuff.page/mission-mode/#how-it-works"
        },
        {
          "id": "settings",
          "text": "Settings",
          "level": 2,
          "url": "https://docs.freebuff.page/mission-mode/#settings"
        },
        {
          "id": "writing-a-goal",
          "text": "Writing a goal the judge can check",
          "level": 2,
          "url": "https://docs.freebuff.page/mission-mode/#writing-a-goal"
        },
        {
          "id": "good-to-know",
          "text": "Good to know",
          "level": 2,
          "url": "https://docs.freebuff.page/mission-mode/#good-to-know"
        },
        {
          "id": "when-to-use",
          "text": "When to use it",
          "level": 2,
          "url": "https://docs.freebuff.page/mission-mode/#when-to-use"
        }
      ],
      "text": "Mission mode is Freebuff's version of /goal, started with /mission.\nYou write down what you want done, and a second \"judge\" model keeps your agent going\nuntil it is actually done.\n\n## How it works\n\nWhen the agent finishes a turn and nothing else is queued — including when it stops with\na \"here's what I did so far\" message — the judge looks at what happened and picks one of\ntwo things:\n\n- Keep going: it writes the next prompt for the agent on your behalf, or picks one of the skills you have loaded (review, tests, commit, open a PR, and so on).\n\n- Stop: it ends the mission when the goal is done, or when it needs something from you. It tells you in one short line why it stopped and what is left.\n\nThe judge runs on the same model you picked, but in its own fresh context. It never\nedits files or runs commands. It only sees what the agent wrote and a list of which\ntools it called — not the file contents.\n\n## Settings\n\nSetting | What it does |\n\nGoal |\nWhat you want done, in your own words, up to 4,000 characters. The clearer the goal and the \"done\" criteria, the better the judge steers. |\n\nEffort |\n1 to 5, default 3. How thorough the work should be, from a quick pass to the most careful version. It also sets a rough time target, from 15 minutes up to 4 hours — a guide, not a cutoff. |\n\n## Writing a goal the judge can check\n\nState the end condition, not the activity:\n\n- \"All unit tests pass and the settings page persists the theme across reloads.\"\n\n- \"The blog renders from the new content collection, with the old URLs still returning 200.\"\n\nIf your goal has no observable finish line, the judge will keep finding more to do, or\nstop early and hand it back. Both are honest outcomes, but neither is what you wanted.\n\n## Good to know\n\n- If a turn ends with an error, Mission stops instead of retrying. Fix the problem and start it again.\n\n- You can step in at any time: send a message to redirect the agent, or stop Mission.\n\n- The judge sees the transcript and the tool names, so a vague \"done\" in your own summary can convince it to stop. Be literal.\n\n## When to use it\n\n- Mechanical work with a checkable end state: migrations, test coverage, dependency bumps.\n\n- Features with a written definition of done and a test that proves it.\n\n- Long runs where you would otherwise keep typing \"continue\" every few minutes.\n\nFor exploratory work — \"make this nicer\" — a normal chat is better, because the judge\nhas nothing objective to steer by. And when the goal needs your taste, review the result\nyourself; the judge measures the goal, not the design."
    },
    {
      "path": "/desktop/",
      "url": "https://docs.freebuff.page/desktop/",
      "title": "Desktop app",
      "description": "Installers, the built-in terminal, update behaviour, keyboard shortcuts, and where the app keeps its files.",
      "section": "Surfaces",
      "headings": [
        {
          "id": "platforms",
          "text": "Builds and platforms",
          "level": 2,
          "url": "https://docs.freebuff.page/desktop/#platforms"
        },
        {
          "id": "terminal",
          "text": "The built-in terminal",
          "level": 2,
          "url": "https://docs.freebuff.page/desktop/#terminal"
        },
        {
          "id": "updates",
          "text": "Updates",
          "level": 2,
          "url": "https://docs.freebuff.page/desktop/#updates"
        },
        {
          "id": "shortcuts",
          "text": "Keyboard shortcuts",
          "level": 2,
          "url": "https://docs.freebuff.page/desktop/#shortcuts"
        },
        {
          "id": "storage",
          "text": "Where the app keeps its files",
          "level": 2,
          "url": "https://docs.freebuff.page/desktop/#storage"
        },
        {
          "id": "logs",
          "text": "Collecting a log for support",
          "level": 3,
          "url": "https://docs.freebuff.page/desktop/#logs"
        },
        {
          "id": "revert",
          "text": "Reversing a turn",
          "level": 2,
          "url": "https://docs.freebuff.page/desktop/#revert"
        },
        {
          "id": "when",
          "text": "When to use Desktop",
          "level": 2,
          "url": "https://docs.freebuff.page/desktop/#when"
        }
      ],
      "text": "The Desktop app runs the agent against a real folder on your machine. This page covers the\npart that is specific to the app — builds, terminal, updates, shortcuts, on-disk state — not\nhow the agent itself works, which is on working with the\nagent.\n\nBuilds macOS — DMG and ZIP · Windows — NSIS · Linux — AppImage\n\nTerminal Git Bash, COMSPEC or PowerShell on Windows; $SHELL elsewhere\n\nLive terminals 12, with a 1 MiB output buffer each\n\nUpdates on launch, then every 2 hours; retry after a failure in 10 minutes\n\nMod ⌘ on macOS, Ctrl on Windows and Linux\n\n## Builds and platforms\n\nThe build configuration targets macOS, Windows and Linux. The installer formats differ by\nplatform, and the download picker distinguishes architectures rather than handing everyone\nthe same file:\n\nPlatform | Installer | Architecture variants |\n\nmacOS | DMG, ZIP | Intel and Apple silicon |\n\nWindows | NSIS | x64 and a separate ARM64 build |\n\nLinux | AppImage | x64 and a separate ARM64 build |\n\nDEB packaging exists in the build configuration, but that alone does not make DEB the\nprimary Linux download — take the AppImage unless your distribution page says otherwise.\nMinimum supported OS versions are not published here; if an installer refuses to run, the\nrelease page for that build is the authority.\n\n## The built-in terminal\n\nThe app opens a real shell, not an emulation of one. Which shell it opens depends on the\nplatform:\n\n- Windows — Git Bash when it can be found, otherwise COMSPEC, otherwise powershell.exe.\n\n- macOS and Linux — $SHELL, falling back to /bin/sh, started as a login shell.\n\nThe shell inherits the environment the app passes down, gets TERM=xterm-256color,\nand has two internal tree-sitter variables stripped. The starting directory is your project\nfolder; an initial directory that does not exist or cannot be entered is not accepted, and\nthe terminal falls back to the workspace instead of opening somewhere unexpected.\n\nTwo numbers matter in practice. The app keeps at most 12 live terminal sessions,\neach with a 1 MiB output buffer. When the cap is reached it closes the least\nrecently used terminals that have no attached view — a session you are looking at is not the\none that disappears. That cap is about terminals the app keeps alive, not a limit on how many\ncommands the agent may run in a chat.\n\n## Updates\n\nThe app checks for updates when it starts and then periodically, with a bounded retry when a\ncheck fails. The numbers are in the updater itself:\n\nSetting | Value |\n\nCheck on launch | Yes |\n\nCheck interval | 2 hours |\n\nRetry after a failed check | 10 minutes |\n\nTimeout for a check | 2 minutes |\n\nTimeout for an install | 5 minutes |\n\nIdle time before a deferred install | 60 seconds |\n\nSettings → Updates shows the current version and a Check for\nupdates button. A check that times out is retried rather than treated as \"up to\ndate\", and an install that hangs ends in an error state instead of leaving the app half\nupdated.\n\nOn macOS an app launched straight from the DMG — or from App Translocation, which is what\nhappens when you double-click a download without moving it — cannot update itself. Drag the\napp into Applications first; otherwise the update finishes and the running copy stays the\nold one.\n\n## Keyboard shortcuts\n\nMod is ⌘ on macOS and Ctrl on Windows and Linux. These are the rebindable\nactions in the shortcut registry:\n\nAction | Desktop | Web |\n\nLeft panel | Mod + B | same |\n\nBottom terminal | Ctrl + ` | same |\n\nRight panel | Mod + Alt + B | same |\n\nSearch chats | Mod + K | same |\n\nSettings | Mod + , | same |\n\nNew chat | Mod + T | Mod + Alt + N |\n\nClose tab | Mod + W | Mod + Alt + W |\n\nNext tab | Ctrl + Tab | Mod + Alt + ] |\n\nPrevious tab | Ctrl + Shift + Tab | Mod + Alt + [ |\n\nReopen closed tab | Mod + Shift + T | same |\n\nOpen project | Mod + O | same |\n\nA binding you set to something the app cannot use falls back to the default, and a key can\nbe unbound on purpose. The Web build is not a copy of Desktop with fewer features: some\nbrowser-reserved combinations have to differ, which is why new and close are remapped there.\n\n## Where the app keeps its files\n\nThe state is split between the project folder and your user profile, and the two have\ndifferent lifetimes:\n\nWhat | Where |\n\nApp profile |\n~/.config/freebuff-desktop/state.json; a source build uses freebuff-desktop-dev/state.json instead |\n\nProfile override |\nFREEBUFF_DESKTOP_STATE_PATH |\n\nProject database |\n<project>/.freebuff/desktop-v2.db, with the older ~/.config/freebuff-desktop/projects/<project-slug>/desktop-v2.db still present on installs that predate the move |\n\nProject settings |\n<project>/.freebuff/settings.json |\n\nApplication log |\norchestrator-stderr.log in Electron's app.getPath('logs') |\n\nBecause .freebuff/ lives in the project, it travels with the project and can show\nup in a diff — a folder copied to another machine can therefore carry settings that nobody\nmeant to share. An older desktop.db is left on disk when the database is created,\nso a project that has been open for a while can hold both files.\n\nThe project database has also moved once: a build that keeps it in the profile folder stores\nit under ~/.config/freebuff-desktop/projects/<project-slug>/desktop-v2.db. If\na path from either location is missing, search the disk for desktop-v2.db instead\nof assuming the table is wrong for your version.\n\nUninstalling the app does not reliably remove either copy. If you are removing\nFreebuff for good, delete the project's .freebuff/ folder where you do not want\nsettings to come back, and delete the profile directory as well.\n\n### Collecting a log for support\n\nThe log file above is the one to attach when the app fails at startup, and a startup error\ndialog can open it with Show Log. Read it before sending: a log from a broken\nbuild can contain paths, command lines and environment values. Redact the lines that carry\nsecrets rather than sending the file unread.\n\n## Reversing a turn\n\nEdits made by a turn can be reverted as a unit: the changes are undone in reverse order by\napplying their inverse patches. That is stricter than \"restore the file from Git\", and it is\nwhat makes it safe to revert one turn in a folder with uncommitted work.\n\nA file is skipped, rather than forced back, when its patch no longer applies, when it is\nbinary, when the change cannot be attributed to that turn, or when reading or writing fails.\nSkipping is deliberate: a file you changed after the turn should not be overwritten by a\nrevert that assumed your version did not exist.\n\nCommit before a large revert. A skipped file stays changed, so a revert can leave the tree in\na mixed state — half restored, half kept — and Git is what tells you which is which.\n\nSettings that belong to the person rather than the project — plan, balance, sign-in,\nverification — are not in either place. They live with the account; see\naccount and settings.\n\n## When to use Desktop\n\nDesktop is the right surface when the code is already on your disk, when the build needs a\ntoolchain you installed yourself, or when the work should not leave the machine. If the\nproject needs to be reachable from a browser, from a teammate or from your phone, it belongs\nin Cloud — the comparison is on Desktop and Cloud, and the\ncommand-line alternative is on CLI."
    },
    {
      "path": "/cli/",
      "url": "https://docs.freebuff.page/cli/",
      "title": "CLI",
      "description": "How to install and run the command-line client, every flag and slash command, and where it keeps config, history and MCP servers.",
      "section": "Surfaces",
      "headings": [
        {
          "id": "install",
          "text": "Installing",
          "level": 2,
          "url": "https://docs.freebuff.page/cli/#install"
        },
        {
          "id": "flags",
          "text": "Flags",
          "level": 2,
          "url": "https://docs.freebuff.page/cli/#flags"
        },
        {
          "id": "slash",
          "text": "Slash commands",
          "level": 2,
          "url": "https://docs.freebuff.page/cli/#slash"
        },
        {
          "id": "config",
          "text": "Configuration",
          "level": 2,
          "url": "https://docs.freebuff.page/cli/#config"
        },
        {
          "id": "history",
          "text": "Conversation history",
          "level": 3,
          "url": "https://docs.freebuff.page/cli/#history"
        },
        {
          "id": "mcp",
          "text": "MCP servers in the CLI",
          "level": 2,
          "url": "https://docs.freebuff.page/cli/#mcp"
        },
        {
          "id": "vs",
          "text": "CLI or Desktop",
          "level": 2,
          "url": "https://docs.freebuff.page/cli/#vs"
        }
      ],
      "text": "The CLI is the same agent in a terminal. It is the surface to use over SSH, in a tmux\nsession, or on a machine where you do not want a desktop app — and its slash commands are the\nfastest way to reach account data without opening a settings page.\n\nInstall npm install -g freebuff\n\nRun freebuff from the project folder\n\nRequires Node 16 or newer · macOS, Linux, Windows · x64 or arm64\n\nConfig ~/.config/manicode, or FREEBUFF_CONFIG_DIR\n\nHistory <config>/projects/<project>/chats/<id>/\n\n## Installing\n\nThe published package is freebuff, installed globally and started without\narguments from inside the project you want to work on:\n\n```\nnpm install -g freebuff\ncd ~/code/my-project\nfreebuff\n```\n\nThe package declares Node >=16 and supports macOS, Linux and Windows on x64\nand arm64. The agent works on the folder you start it in, so starting it one directory too\nhigh is the most common way to get an agent that cannot find the project.\n\nOn an older Intel Mac, a crash with SIGILL at startup means the CPU does not\nimplement instructions the default build assumes; install the baseline build described in the\npackage README instead of retrying.\n\n## Flags\n\nThe CLI takes a short list of flags. It is an interactive client: it does not accept an\ninitial prompt as an argument, and it is not a scriptable JSON mode.\n\nFlag | What it does |\n\nfreebuff login | Signs in and stores the session for later runs. |\n\n--continue [conversation-id] | Resumes the previous conversation, or the one you name. |\n\n--cwd <directory> | Sets the working directory instead of using the current one. |\n\n--trust-agents | Loads the repository's .agents config and mcp.json without asking whether to trust them. |\n\n-v, --version | Prints the version. |\n\n-h, --help | Prints usage. |\n\n--trust-agents is about trusting files that are already in the repository —\nagent configs and MCP server definitions. It is not a general \"stop asking me\" switch, and\nit does not make an untrusted checkout safe: a repository you have not read can define\nservers and environment variables that run with your permissions.\n\n## Slash commands\n\nThese are the commands in the client's registry. Aliases are listed with the command they\nstand for; /skill:<name> appears when a skill adds its own command.\n\nCommand | What it does |\n\n/help | Key hints and command help. |\n\n/diagnostics | Local resource use and the processes started by terminal tools. |\n\n/dashboard | Usage dashboard. Aliases: /usage, /stats, /streak. |\n\n/model | Picks the model for the next message. |\n\n/reasoning | Picks the reasoning level for the next message. |\n\n/plan | Works out a plan before anything is changed. |\n\n/review | Reviews the changes in the code. |\n\n/compact | Compresses the conversation into a summary. |\n\n/todo | Shows the current task list. |\n\n/queue | Edits messages waiting to be sent. |\n\n/new | Starts a fresh conversation. Aliases: /clear, /reset. |\n\n/history | Lists and reopens earlier conversations. |\n\n/copy | Copies the conversation. |\n\n/export | Exports the conversation. |\n\n/bash | Switches to running terminal commands. |\n\n/interview | Collects requirements by asking questions. |\n\n/byok | Brings your own provider keys. |\n\n/theme:toggle | Switches between light and dark. |\n\n/deals | Shows current offers. |\n\n/ads:report | Reports a problem with an advert. |\n\n/feedback | Sends feedback. |\n\n/end-session | Ends the current session. |\n\n/logout, /exit | Signs out, or leaves the client. |\n\nA few commands that exist elsewhere are deliberately absent from this registry:\n/init, /image and /publish. If a guide tells you to\ntype one of them in the CLI, it is describing a different client.\n\n## Configuration\n\nThe client reads its configuration from ~/.config/manicode. To move it — onto an\nencrypted volume, or into a container — set FREEBUFF_CONFIG_DIR to an\nabsolute path:\n\n```\nexport FREEBUFF_CONFIG_DIR=/home/you/.config/freebuff-cli\n```\n\nA relative path is rejected as an error rather than resolved against the current directory,\nwhich keeps two shells from silently using different configs.\n\n### Conversation history\n\nConversations are stored per project under the config directory:\nprojects/<project-folder-name>/chats/<id>/. /history\nscans the most recent 500 chat directories. A chat whose files cannot be read\nis flagged as unreadable and left alone instead of being partially restored — that is a signal\nthat something on disk is damaged, not a prompt to start writing files into the history.\n\n## MCP servers in the CLI\n\nThe client looks for .agents/mcp.json in the current directory, its parent and\nyour home directory. Files are merged in that order, and when two files define a server with\nthe same name, the later entry replaces the earlier one — which means a server defined in your\nhome config overrides the one committed to the repository.\n\nA file that does not parse, or that names an environment variable which is not set, is skipped\nas a whole rather than half-loaded; run with verbose output to see the reason. Desktop reads a\nshared ~/.agents/mcp.json and its own ~/.freebuff/mcp.json instead,\nand applies its own allowlist to inherited environment variables — see\nMCP servers for the config format itself.\n\n## CLI or Desktop\n\n| CLI | Desktop |\n\nWorks over SSH | Yes | No |\n\nDiff and preview panes | No — changes are in your files and your editor | Yes |\n\nTerminal | The one you already have | Built in, Git Bash or $SHELL |\n\nAccount views | /dashboard | Settings screens |\n\nBoth run against the same project folder and the same account, so a chat started in one is not\ntied to the other. For the hosted surface with no machine at all, see\nCloud workspaces."
    },
    {
      "path": "/cloud/",
      "url": "https://docs.freebuff.page/cloud/",
      "title": "Cloud workspaces",
      "description": "How Cloud chats relate to a project, what archiving does, and how to get work back.",
      "section": "Surfaces",
      "headings": [
        {
          "id": "copy",
          "text": "A chat works on its own copy",
          "level": 2,
          "url": "https://docs.freebuff.page/cloud/#copy"
        },
        {
          "id": "archive",
          "text": "Archiving",
          "level": 2,
          "url": "https://docs.freebuff.page/cloud/#archive"
        },
        {
          "id": "preview",
          "text": "Preview servers",
          "level": 2,
          "url": "https://docs.freebuff.page/cloud/#preview"
        },
        {
          "id": "commands",
          "text": "Commands the agent runs",
          "level": 2,
          "url": "https://docs.freebuff.page/cloud/#commands"
        },
        {
          "id": "transfer",
          "text": "Moving a local project into Cloud",
          "level": 2,
          "url": "https://docs.freebuff.page/cloud/#transfer"
        },
        {
          "id": "projects",
          "text": "What a Cloud project is",
          "level": 2,
          "url": "https://docs.freebuff.page/cloud/#projects"
        },
        {
          "id": "moving",
          "text": "Getting work back out",
          "level": 2,
          "url": "https://docs.freebuff.page/cloud/#moving"
        },
        {
          "id": "limits",
          "text": "Where the limits are written down",
          "level": 2,
          "url": "https://docs.freebuff.page/cloud/#limits"
        }
      ],
      "text": "Cloud runs the agent on a copy of the project that lives with Freebuff, so nothing depends on\nyour laptop being awake. That copy is the whole point — and the whole source of confusion.\n\nFiles a copy stored with Freebuff, per project\n\nArchiving chats archive after 7 days by default; 1, 3, 7 or 14 days is selectable\n\nActive work running and queued chats keep working while the chat archive runs\n\nRestore Settings → Archived\n\n## A chat works on its own copy\n\nEvery Cloud chat has its own working copy of the project. Two chats on the same project do not\nsee each other's unfinished changes, which keeps parallel attempts from overwriting each\nother — but it also means \"my edit disappeared\" is usually \"the edit is in the other chat's\ncopy\". Push when a result should be shared; the routes are on\nGit and deploy.\n\n## Archiving\n\nCloud chats are archived after a period of inactivity. The default is 7 days,\nand the selector offers 1, 3, 7 or 14 days. A value outside that set is\ntreated as 7 rather than accepted, so a typo cannot quietly turn into \"never\".\n\nArchiving is about the chat, not about shutting down work in progress. A chat that is running\nor waiting in the queue stays active while the archive sweep goes past it; what gets archived\nis the chat that has been sitting idle.\n\nState | What it means | What to do |\n\nActive | The chat is open or recently used | Nothing |\n\nRunning or queued | Work is still progressing | Leave it — the archive does not stop it |\n\nArchived | Idle past the retention window | Restore it from Settings → Archived |\n\nRestoring brings the chat back into the list with its history. Archiving is also not deletion:\nit does not unpublish a site, delete a database, or remove stored files — those are separate\nactions, described on Sites and storage and\ndata.\n\nDo not infer how long a workspace lives from how often a background sweep runs. The archive\nperiod above is the retention of an idle chat, and it is the only window this page states.\n\n## Preview servers\n\nA chat that runs a dev server gets a preview of its own. That preview is stopped after\n30 minutes without activity — a chat that is active or busy keeps it. The\nproject's shared preview server is excluded from this rule by default, so an idle chat does not\ntake the project's preview with it.\n\nStopping a preview is not deletion: files, the workspace and anything published stay as they\nwere. Reloading the preview starts the server again; a build that needed a running process will\nhave to run it again.\n\n## Commands the agent runs\n\nTerminal commands issued by the agent in Cloud are time-limited:\n\nSetting | Value |\n\nDefault timeout | 30 seconds |\n\nMaximum timeout | 180 seconds |\n\nRequest for 0, a negative value or -1 | Clamped to the maximum, not treated as unlimited |\n\nWhen a command hits its timeout it is stopped and the result says so, with the option to retry\nwith more time. This is the limit of the agent's terminal tool, not of an interactive shell you\nopen yourself — a dev server started in a terminal is not killed by it.\n\n## Moving a local project into Cloud\n\nUploading a local project produces an archive, and the archive has hard limits:\n\nLimit | Value |\n\nCompressed archive | 4 GiB |\n\nSource files before compression | 16 GiB |\n\nFile count | 200,000 |\n\nOver the limit, the message suggests excluding large folders with .freebuffignore\nand trying again — which is the right fix, because the usual cause is a build output or a\ndependency folder that never needed to travel. The upload already skips .git,\n.freebuff, node_modules, dist, build,\n.next and .cache.\n\nThat exclusion list belongs to this upload path, not to every snapshot: the sandbox migration\nexcludes node_modules and .next but keeps .git, and its\npacking step is bounded at 3 minutes. A failed pack or transfer aborts the operation instead of\nproducing a partial project.\n\nNone of these numbers is a workspace lifetime. Archive periods, preview idle timers and pack\ntimeouts are three different clocks; reading one as the other is how \"my workspace vanished\"\nstories start.\n\n## What a Cloud project is\n\nA project is the container: it holds chats, the files they work on, and anything published\nfrom it. Chats are how you talk to the agent inside that project. Keeping the two apart makes\nthe rest of the docs readable — \"delete the chat\" and \"delete the project\" are different\noperations with different consequences.\n\n## Getting work back out\n\n- Through Git — commit and push from a Cloud chat, then pull on your machine. This is the route that keeps history.\n\n- As a snapshot — continuing a local chat in Cloud copies history and files; the reverse trip and its size limits are on local to Cloud.\n\n- As a published site — if the deliverable is a website, publishing is the export; see Sites.\n\n## Where the limits are written down\n\nInvocation and storage numbers are collected on\nlimits and invocations, publishing quotas on\nSites, and plan allowances on\nplans and allowances. This page does not restate them:\na number copied into three pages is a number that will be wrong in two of them.\n\nFor the comparison with a local folder, including what does and does not land on your disk,\nsee Desktop and Cloud."
    },
    {
      "path": "/mobile/",
      "url": "https://docs.freebuff.page/mobile/",
      "title": "Mobile apps",
      "description": "What the iOS and Android clients can do, which platform versions they target, and what stays on the browser workspace.",
      "section": "Surfaces",
      "headings": [
        {
          "id": "what",
          "text": "What you can do",
          "level": 2,
          "url": "https://docs.freebuff.page/mobile/#what"
        },
        {
          "id": "queue",
          "text": "Sending while the app is closed",
          "level": 2,
          "url": "https://docs.freebuff.page/mobile/#queue"
        },
        {
          "id": "versions",
          "text": "Platform versions",
          "level": 2,
          "url": "https://docs.freebuff.page/mobile/#versions"
        },
        {
          "id": "need",
          "text": "What mobile still needs",
          "level": 2,
          "url": "https://docs.freebuff.page/mobile/#need"
        },
        {
          "id": "notifications",
          "text": "Notifications",
          "level": 2,
          "url": "https://docs.freebuff.page/mobile/#notifications"
        }
      ],
      "text": "The mobile clients are for staying with a Cloud project from a phone: reading a result,\nanswering a question, starting a task. They are not a way to run a local project, because a\nphone has no project folder to run it in.\n\nAndroid minimum SDK 26, target SDK 36, source version 0.2.0\n\niOS deployment target 26.5, version 1.1, build 2\n\nScope Cloud projects and chats, model choice, attachments, Sites\n\nNot on device files and terminal open in the browser workspace\n\n## What you can do\n\nThe iOS client is described as supporting shared Cloud projects and chats, choosing a model,\nsending attachments, opening Sites, and starting tasks. The two heavy panes — files and the\nterminal — are handed to the browser workspace rather than reimplemented on the phone, which\nis the honest split: a phone keyboard is a bad editor and a worse terminal.\n\n## Sending while the app is closed\n\nMessages queued on the device advance while the app is active. When iOS suspends the app, the\nqueue stops moving until you come back — so \"I sent it and locked the phone\" can leave a\nmessage unsent. Tasks that are already running on the server are a different case: they\ncontinue after the app is closed.\n\nAction | App closed | App open |\n\nMessage already sent, task running | Continues on the server | Continues |\n\nMessage waiting in the device queue | Paused until the app resumes | Advances |\n\n## Platform versions\n\nThe Android build declares minSdk = 26 and targetSdk = 36; the iOS\nproject declares a deployment target of iOS 26.5. Those are build settings\nfrom the source tree, not a statement about the version currently in a store — a store listing\nis the place to check what you are about to install, and the app's own settings screen shows\nwhat you have.\n\nThe version numbers in the repositories (0.2.0 for Android, 1.1 build\n2 for iOS) identify those builds. They are not a product version for the whole of\nFreebuff, and this wiki does not print one in the footer for the same reason.\n\n## What mobile still needs\n\n- A Cloud project — a project that only exists on your laptop is not reachable from a phone. Move it with local to Cloud or push it to GitHub.\n\n- An account with an allowance — the same account as on the desktop; see plans and allowances.\n\n- A published site to show someone — Sites is what makes a link openable on a phone; see Sites.\n\n## Notifications\n\nThe iOS client registers for APNs notifications about a mirrored Desktop session, and tapping\none opens the related chat. Two details are worth knowing:\n\n- No banner for the chat you are reading — when that chat is already on screen, the foreground notification is suppressed; otherwise it arrives as a banner and in the list.\n\n- Registration is throttled — the same device token is not re-registered more often than once every 24 hours, so a quiet day is not a broken notification channel.\n\nA failed registration is kept as an error string rather than discarded, which is what support\nneeds to tell \"notifications are off\" apart from \"the token never reached the server\". The\nnotification is a pointer to the chat: the answer, the diff and the file are in the chat, not\nin the banner."
    },
    {
      "path": "/desktop-and-cloud/",
      "url": "https://docs.freebuff.page/desktop-and-cloud/",
      "title": "Desktop and Cloud",
      "description": "Where the agent runs, what happens to your files, and which one to pick.",
      "section": "Surfaces",
      "headings": [
        {
          "id": "compare",
          "text": "Side by side",
          "level": 2,
          "url": "https://docs.freebuff.page/desktop-and-cloud/#compare"
        },
        {
          "id": "copies",
          "text": "Every Cloud chat has its own copy",
          "level": 2,
          "url": "https://docs.freebuff.page/desktop-and-cloud/#copies"
        },
        {
          "id": "moving",
          "text": "Moving between them",
          "level": 2,
          "url": "https://docs.freebuff.page/desktop-and-cloud/#moving"
        },
        {
          "id": "which",
          "text": "Which should you pick?",
          "level": 2,
          "url": "https://docs.freebuff.page/desktop-and-cloud/#which"
        }
      ],
      "text": "Both surfaces run the same agent. The difference is where the files live, and that\ndecides almost everything else.\n\n## Side by side\n\n| Desktop | Cloud |\n\nFiles | Your real project folder | A copy stored with Freebuff |\n\nChanges land on your disk | Immediately | No — only through GitHub or a handoff back |\n\nNeeds your machine running | Yes | No |\n\nPublishing | Project must be reachable from Cloud | Built in, through Sites |\n\nBest for | Existing code, local toolchains, private work in progress | New projects, previews, anything you plan to publish |\n\n## Every Cloud chat has its own copy\n\nTwo Cloud chats on the same project do not see each other's unsaved changes. That is\ndeliberate — it keeps parallel experiments from corrupting each other — but it means\n\"where did my edit go?\" is usually \"in the other chat's copy\". Commit and push when a\nresult should be shared; see Git and deploy.\n\n## Moving between them\n\nYou can continue a local chat in Cloud, which copies history and current files as a\nsnapshot, or work from a GitHub repository so Cloud changes come back with a\ngit pull. Both routes, including the \"message is too large to move\"\nfailure, are in local to Cloud.\n\nGoing back to Local is always safe: local chats work directly on your project folder\nand never depended on a Cloud copy.\n\n## Which should you pick?\n\n- Code already on your disk, with local tooling you trust → Desktop.\n\n- A new project you want on the internet today → Cloud.\n\n- A teammate or a phone needs to see it → Cloud, then invite them (collaborators).\n\n- Long unattended work → Cloud with Mission mode, so your laptop can sleep."
    },
    {
      "path": "/plans-and-allowances/",
      "url": "https://docs.freebuff.page/plans-and-allowances/",
      "title": "Plans and allowances",
      "description": "Free hours by region, Starter, Plus and Pro, streaks, and how a turn spends your balance.",
      "section": "Plans and account",
      "headings": [
        {
          "id": "two-numbers",
          "text": "Two numbers, not one",
          "level": 2,
          "url": "https://docs.freebuff.page/plans-and-allowances/#two-numbers"
        },
        {
          "id": "free",
          "text": "Free plan: daily allowance",
          "level": 2,
          "url": "https://docs.freebuff.page/plans-and-allowances/#free"
        },
        {
          "id": "paid",
          "text": "Paid plans",
          "level": 2,
          "url": "https://docs.freebuff.page/plans-and-allowances/#paid"
        },
        {
          "id": "bonus-amounts",
          "text": "Wallet bonus per billing month",
          "level": 3,
          "url": "https://docs.freebuff.page/plans-and-allowances/#bonus-amounts"
        },
        {
          "id": "streak",
          "text": "Streak",
          "level": 2,
          "url": "https://docs.freebuff.page/plans-and-allowances/#streak"
        },
        {
          "id": "spending",
          "text": "How a turn spends it",
          "level": 2,
          "url": "https://docs.freebuff.page/plans-and-allowances/#spending"
        },
        {
          "id": "bonus-rules",
          "text": "Bonus rules",
          "level": 2,
          "url": "https://docs.freebuff.page/plans-and-allowances/#bonus-rules"
        },
        {
          "id": "expiry",
          "text": "Wallet expiry",
          "level": 2,
          "url": "https://docs.freebuff.page/plans-and-allowances/#expiry"
        },
        {
          "id": "why-regions",
          "text": "Why regions differ",
          "level": 2,
          "url": "https://docs.freebuff.page/plans-and-allowances/#why-regions"
        },
        {
          "id": "looks-low",
          "text": "\"My balance looks low\"",
          "level": 2,
          "url": "https://docs.freebuff.page/plans-and-allowances/#looks-low"
        }
      ],
      "text": "Balance is measured in hours. One hour equals five freebucks, so 250\nfreebucks is 50 hours. That rename is the reason long-time users sometimes think their\nbalance shrank: nothing was taken, only the label changed.\n\n## Two numbers, not one\n\nYour daily allowance and your wallet are separate figures. Neither of them alone is your\nwhole balance:\n\n- Daily allowance — refills every day at midnight in your account's reset timezone. Unused daily hours do not carry over.\n\n- Wallet — hours that survive the nightly reset: plan bonuses, banked streaks, top-ups. Surviving the daily reset is not the same as lasting forever — see wallet expiry.\n\nThe daily pool is spent before the wallet.\n\n## Free plan: daily allowance\n\nRegion | Hours per day |\n\nUnited States | 30 |\n\nCanada, United Kingdom, Australia, New Zealand, Ireland, Norway, Sweden, Denmark, Finland, Netherlands, Austria, Luxembourg, Iceland, Germany, Switzerland | 21 |\n\nFrance, Spain, Italy, Portugal, Belgium, Liechtenstein, Malta, South Korea | 12 |\n\nOther regions | 5, limited access |\n\nOn a VPN or proxy | 4, limited access |\n\nFreebuff still works in limited access outside the full-access regions, or when using a\nVPN or proxy — the allowance is smaller and some features are unavailable.\n\n## Paid plans\n\nYour daily allowance depends on whether you have full or limited access. It does not vary\nby country within the same access level.\n\nPlan | Daily, full access | Daily, limited access |\n\nStarter | 50 hours | 21 hours |\n\nPlus | 80 hours | 40 hours |\n\nPro | 130 hours | 70 hours |\n\n### Wallet bonus per billing month\n\nMore than one bonus schedule is in force, so the number depends on the account, not on the\nplan alone:\n\nPlan | Earlier retained rate | Reduced rate, full access | Reduced rate, limited access |\n\nStarter | +60 hours | +30 hours | +20 hours |\n\nPlus | +100 hours | +50 hours | +40 hours |\n\nPro | +160 hours | +100 hours | +80 hours |\n\nThe reduced rate applies to qualifying newer accounts and lands before the general\nrate-change date; a continuous subscription that was already running keeps the earlier rate.\nAccount age and subscription history decide which column is yours — read the figure on your\nown Billing screen rather than the plan's headline number.\n\n## Streak\n\nAfter seven consecutive days, eligible days add 3 hours to your daily pool. The bonus is\ncredited on your first Freebuff message that day and expires at the daily reset if you do\nnot use it.\n\n## How a turn spends it\n\n- Hours are balance units, not guaranteed hours of model runtime.\n\n- Each model spends balance at the rate shown in the picker. A model marked 3x uses three hours of balance per hour of work; unlabelled models are 1x; the Unlimited section is free.\n\n- Choosing a cheaper model is the single largest lever you have on how long a plan lasts.\n\n## Bonus rules\n\n- An unused monthly plan bonus is replaced when the next billing period's bonus is credited.\n\n- Upgrading keeps your current bonus and adds the new plan's bonus.\n\n- Cancelling a monthly plan ends it immediately; the unused part of the month is not refunded automatically.\n\n- Cancelling an annual plan is scheduled for the end of the paid year, and access continues until then.\n\n- A refund for an early ending is a separate decision and is never automatic. Do not read a cancellation as an entitlement to the remaining period.\n\n## Wallet expiry\n\nWallet credit is not one kind of credit, and it does not all expire on the same terms:\n\n- Plan bonuses — an unused bonus is replaced when the next one is credited, so bonuses do not stack indefinitely.\n\n- Purchased top-ups — a top-up can expire a year after purchase. Older credits that carry no expiry date are treated differently from new ones.\n\n- Streak hours — these are daily-pool hours: they expire at the daily reset rather than living in the wallet.\n\nThe authoritative expiry date for a particular credit is the one shown in Billing or Earn,\nnot a rule of thumb.\n\n## Why regions differ\n\nFree allowances reflect ad revenue by region: the same session earns more or less\ndepending on where it runs, and allowances follow that. Limits may change over time, and\nthe dashboard always wins over a table on a wiki page.\n\n## \"My balance looks low\"\n\n- Check whether you are looking at the daily pool or the wallet — neither is the whole balance.\n\n- Check the model multiplier. One 3x session costs as much as three 1x sessions.\n\n- Limited access carries a smaller daily allowance. Turn off any VPN, proxy or iCloud Private Relay, and set your country under Settings → Country on freebuff.com if it is wrong. See country verification."
    },
    {
      "path": "/models/",
      "url": "https://docs.freebuff.page/models/",
      "title": "Models",
      "description": "How model pricing is expressed in hours, what the multipliers mean, and the context sizes the catalog declares.",
      "section": "Plans and account",
      "headings": [
        {
          "id": "unit",
          "text": "Hours, freebucks and multipliers",
          "level": 2,
          "url": "https://docs.freebuff.page/models/#unit"
        },
        {
          "id": "ids",
          "text": "Model identifiers",
          "level": 2,
          "url": "https://docs.freebuff.page/models/#ids"
        },
        {
          "id": "context",
          "text": "Context sizes",
          "level": 2,
          "url": "https://docs.freebuff.page/models/#context"
        },
        {
          "id": "default",
          "text": "Which model a new chat starts with",
          "level": 2,
          "url": "https://docs.freebuff.page/models/#default"
        },
        {
          "id": "refund",
          "text": "Ending a session early",
          "level": 2,
          "url": "https://docs.freebuff.page/models/#refund"
        },
        {
          "id": "cost",
          "text": "How a model is charged",
          "level": 2,
          "url": "https://docs.freebuff.page/models/#cost"
        },
        {
          "id": "choosing",
          "text": "Choosing a model",
          "level": 2,
          "url": "https://docs.freebuff.page/models/#choosing"
        }
      ],
      "text": "A model's cost is expressed as an hourly rate, and the interface shows that rate as a\nmultiplier. Getting those two ideas straight explains most \"why did my balance drop so fast\"\nquestions.\n\nUnit 1 displayed hour = 5 freebucks\n\nDisplay whole hours, rounded down\n\nExample 10 freebucks per hour shows as 2×\n\nIDs deepseek/deepseek-v4-flash, deepseek/deepseek-v4-flash-fast\n\n## Hours, freebucks and multipliers\n\nThe account is billed in hours, but the underlying price is in freebucks, and one displayed\nhour is 5 freebucks. The multiplier is that hourly price divided by five and\nshown as a whole number, rounded down:\n\nPrice per hour | Shown as | One hour costs |\n\n5 freebucks | 1× | 1 hour |\n\n10 freebucks | 2× | 2 hours |\n\n15 freebucks | 3× | 3 hours |\n\nRounding down is why two prices can display the same multiplier. The multiplier is a label for\nthe rate, not a second price — the number that is actually subtracted is the hourly rate in\nfreebucks.\n\n## Model identifiers\n\nModels have stable IDs, and a \"fast\" variant is a separate ID rather than a setting:\n\nModel | Identifier |\n\nDeepSeek V4.1 Flash | deepseek/deepseek-v4-flash |\n\nDeepSeek V4.1 Flash, fast variant | deepseek/deepseek-v4-flash-fast |\n\nMiMo v2.6 Flash, fast and slow | Two modes of one model, not two models |\n\nUse the ID when you are writing configuration, a script or a bug report. Use the display name\nwhen you are talking to a person. The two are not interchangeable, and a display name is the\nthing most likely to change.\n\n## Context sizes\n\nThe catalog declares these context windows:\n\nModel | Context |\n\nGLM 5.3 Flash | 1,000,000 tokens |\n\nSolar Pro 4 | 500,000 tokens |\n\nSolar Mini 4 | 500,000 tokens |\n\nThose figures are conservative catalog values, not measured points of failure. A model may\ndegrade or refuse well before the declared limit, and a long conversation is compacted rather\nthan replayed in full — see working with the agent for\nwhat happens when the history grows.\n\n## Which model a new chat starts with\n\nThe default is not one fixed identifier, and it is not promised to be the same in every\nrelease. Three things decide what a new chat starts with:\n\n- The access tier — full access and limited access are served different models, and the catalog carries a recommendation for each tier.\n\n- The time of day — around the expensive window a fast variant is skipped in favour of the regular model.\n\n- Your own saved choice — a model you picked earlier is honoured when it is available and the balance covers it, with a fallback to what the catalog recommends when it is not.\n\nThe client also checks availability and balance before it commits to a model, so the\nrecommendation in the catalog and the default in a particular build can differ. Treat the\npicker as the authority for what your release preselects, and read the rate shown there as\nthe price. Changing the model is a per-message decision either way, so the default only\ndecides the first message of a chat.\n\n## Ending a session early\n\nA purchased session that ends early can be partly refunded, but the amount is not a flat\nrule and there is no single condition that switches it off. What comes back follows the\ncharge the session actually incurred — a session that spent little is a different case from\none that ran expensive work — and it depends on your access level and on how soon after the\nstart it ended.\n\nA start that failed before any work began is handled by a separate path, and it can return the\nwhole charge when its checks pass. Where the two overlap, the settlement shown to you is the\nanswer; if the amount looks wrong, ask support rather than reconstructing the rule.\n\nThis is a rule about ending a session, not about pressing Stop in the middle of a turn. A\nstopped turn is still a turn that ran; do not treat the refund above as a way to try a costly\nmodel for free.\n\n## How a model is charged\n\nChoosing a model sets the rate for the work that follows; a heavier model does more per hour\nand costs more per hour. When the remaining balance is short, the error message compares what\nis left against one hour of the selected model and, if there is enough left for something\ncheaper, it says so instead of just refusing.\n\nPrices live in the catalog and can be changed by configuration, so this page deliberately does\nnot print a price list. The authoritative price for your account is the one shown in the model\npicker and on the Billing page; what each plan includes is on\nplans and allowances.\n\n## Choosing a model\n\n- Reading and explaining code — a cheap model is usually enough; the work is not reasoning-heavy.\n\n- Refactors across files — pay for the stronger model; a wrong global edit costs more to undo than the difference in rate.\n\n- Long sessions — check the context size before you start, because compaction loses detail.\n\n- Repeating one task many times — measure one run, then multiply. An hourly rate hides how much a single attempt consumes."
    },
    {
      "path": "/account/",
      "url": "https://docs.freebuff.page/account/",
      "title": "Account and settings",
      "description": "Where every account setting lives, how sign-in and email changes work, what verification asks for, and what deletion actually removes.",
      "section": "Plans and account",
      "headings": [
        {
          "id": "pages",
          "text": "The six settings pages",
          "level": 2,
          "url": "https://docs.freebuff.page/account/#pages"
        },
        {
          "id": "signin",
          "text": "How you sign in",
          "level": 2,
          "url": "https://docs.freebuff.page/account/#signin"
        },
        {
          "id": "password",
          "text": "Password and reset",
          "level": 3,
          "url": "https://docs.freebuff.page/account/#password"
        },
        {
          "id": "apple",
          "text": "Apple and Hide My Email",
          "level": 3,
          "url": "https://docs.freebuff.page/account/#apple"
        },
        {
          "id": "methods",
          "text": "Adding and removing methods",
          "level": 3,
          "url": "https://docs.freebuff.page/account/#methods"
        },
        {
          "id": "name",
          "text": "Display name",
          "level": 2,
          "url": "https://docs.freebuff.page/account/#name"
        },
        {
          "id": "email",
          "text": "Changing your email",
          "level": 2,
          "url": "https://docs.freebuff.page/account/#email"
        },
        {
          "id": "verification",
          "text": "Verification",
          "level": 2,
          "url": "https://docs.freebuff.page/account/#verification"
        },
        {
          "id": "phone",
          "text": "Phone",
          "level": 3,
          "url": "https://docs.freebuff.page/account/#phone"
        },
        {
          "id": "identity",
          "text": "Identity",
          "level": 3,
          "url": "https://docs.freebuff.page/account/#identity"
        },
        {
          "id": "billing",
          "text": "Billing",
          "level": 2,
          "url": "https://docs.freebuff.page/account/#billing"
        },
        {
          "id": "api",
          "text": "Developer API credits",
          "level": 2,
          "url": "https://docs.freebuff.page/account/#api"
        },
        {
          "id": "earn",
          "text": "Earn",
          "level": 2,
          "url": "https://docs.freebuff.page/account/#earn"
        },
        {
          "id": "standing",
          "text": "Account standing",
          "level": 2,
          "url": "https://docs.freebuff.page/account/#standing"
        },
        {
          "id": "delete",
          "text": "Deleting the account",
          "level": 2,
          "url": "https://docs.freebuff.page/account/#delete"
        },
        {
          "id": "faq",
          "text": "Short answers",
          "level": 2,
          "url": "https://docs.freebuff.page/account/#faq"
        }
      ],
      "text": "The account is the thing you sign in with — not your project, not your workspace, not your\npublished site. Code and chats live in a project; the account holds the identity, the\nbalance, the payment method and the right to delete all of it.\n\nSettings pages Account · Usage · Billing · Earn · Developer API · Standing\n\nSign-in Google · GitHub · Apple · email and password\n\nVerification country (30 days) · phone · identity\n\nDeletion irreversible, typed confirmation\n\n## The six settings pages\n\nEverything account-related hangs off one address, freebuff.com/?settings=….\nThese are the sections that exist:\n\nPage | Address | What it is for |\n\nAccount |\n?settings=account |\nDisplay name, email, sign-in methods, GitHub and Discord, country |\n\nUsage |\n?settings=usage |\nSpend and allowance over time, per model and per provider |\n\nBilling |\n?settings=billing |\nPlan, balance, payment method, invoices, cancellation |\n\nEarn |\n?settings=earn |\nWhat has been credited to the account and how it reaches the balance |\n\nDeveloper API |\n?settings=api |\nKeys and credits for the API — separate from plan hours |\n\nAccount standing |\n?settings=standing |\nWarnings, restrictions and blocks, with the reason and the dates |\n\nThe settings screens are split by what they control, not by which client you use. In\nDesktop the account screen and the sidebar entries point at the same data; the CLI reaches\nit with /dashboard, and /usage, /stats and\n/streak print the numbers without opening a page.\n\nThe screen layout does not always match the mental model: model providers have their own\npage, while GitHub and Discord sit under Account. If a setting seems\nmissing, check the other page before assuming the feature is gone — and prefer the\ninterface over a screenshot in a wiki, including this one.\n\n## How you sign in\n\nAn account can carry several sign-in methods at once: Google,\nGitHub, Apple and email with a password.\nThe provider proves who you are; the account is the same account either way.\n\nAn email that already belongs to another account cannot be attached to a second one — you\neither sign in to the existing account or use a different address. And a GitHub sign-in is\nnot the same thing as the GitHub permission used to read and write repositories: signing in\nwith GitHub does not by itself grant repository access.\n\n### Password and reset\n\n- A password is between 12 and 128 characters.\n\n- The reset code is valid for 10 minutes; an expired code has to be requested again.\n\n- Changing a password happens while you are signed in, not from the reset link alone.\n\n- If an account has no password, the reset flow will not invent one — sign in with the provider you used, or ask support.\n\n### Apple and Hide My Email\n\nSigning in with Apple can give the account a private relay address. That is a real address\nfor this account, but it is not the address you would recognise, and it cannot be used to\nrecover access to a different account. If you signed up through Apple, keep using the Apple\nbutton — switching to email later needs the relay address, which is visible in your Apple ID\nsettings.\n\n### Adding and removing methods\n\n- Adding a method means signing in with it while already signed in.\n\n- Removing one is allowed as long as something remains to sign in with.\n\n- Removing a method does not delete the account or its data.\n\n- If a provider starts failing, add a second method before removing the first.\n\n## Display name\n\nThe display name is cosmetic: it appears in the interface and does not affect billing,\nlimits or access. Up to 100 characters, edited under\nAccount → Display name. Your username and email are separate fields and do\nnot change when the display name does.\n\n## Changing your email\n\n- Be signed inThe change is only available from inside the account.\n\n- Enter the new addressand request the change.\n\n- Confirm from both mailboxesCodes go to the old address and to the new one; both are needed.\n\n- Finish inside the windowThe codes expire in about 10 minutes — a stale attempt has to be started over.\n\nAfter the change the new address becomes the account's address. If the confirmation window\ncloses, nothing is lost: start again. If you no longer have access to the old mailbox, the\nchange cannot be completed from the interface — that case goes to support, and it is the one\ncase where a support conversation is the correct path rather than a workaround.\n\nNever post your email in a public Discord channel. Account questions belong in the account\nsupport channel, and support will ask for the minimum needed to find the account.\n\n## Verification\n\nThere are three different checks, and they are not interchangeable:\n\nCheck | What it proves | How long it lasts |\n\nCountry |\nThat you are actually in the country your allowance is based on |\n30 days, then it is asked again |\n\nPhone |\nThat a reachable phone number belongs to the account |\nUntil it is changed or removed |\n\nIdentity |\nA document and a face match, when a review requires it |\nPer review |\n\nCountry verification is the one most people meet: it covers the allowance tiers described on\nplans and allowances, it wants a normal residential\nconnection, and it expires after 30 days. The full walkthrough, including the VPN, proxy and\niCloud Private Relay cases, is on country verification.\n\n### Phone\n\nNumbers are entered in international format. Virtual, VoIP and recently recycled numbers are\nthe usual failures, and a number already attached to another account cannot be reused. Some\nregions are offered a plan or a different route instead of SMS — if the page says so, that is\nnot a bug and retrying the SMS will not help.\n\n### Identity\n\nA document check is requested when a review needs it, not as routine onboarding. Documents\nare not kept as files for browsing; the result is a pass or a fail, and a mismatch between\nthe document and the account can take up to about seven days to resolve. Verification is not\na way to lift a ban or evade one, and asking for it in that spirit tends to end the\nconversation.\n\n## Billing\n\nBalance is counted in hours, and one hour equals five freebucks — the rename is the only\nthing that changed there. What each plan includes, the regional daily allowances, streaks and\nthe model multipliers are on plans and allowances;\nBilling is where you see your own numbers.\n\n- Prepaid credit — a top-up is not an invoice-bearing purchase: expect a receipt, not a tax document.\n\n- Cancellation — a monthly plan ends immediately, while an annual plan is scheduled for the end of the paid year. Neither comes with an automatic refund: a refund is a separate decision, and cancelling is not deletion.\n\n- Upgrading — the new plan's bonus is added to what you already have.\n\n- Downgrading — the current period runs out first, then the smaller allowance applies.\n\n- No charge does not mean no limit — free plans have their own caps, and a limit reached is not a billing problem.\n\nPrices, currencies and plan contents are read from the Billing page rather than copied here,\nwhere they would go stale.\n\n## Developer API credits\n\nAPI credits are a separate balance from plan hours: they are bought for the API, they are\nspent by API calls, and they do not buy plan features. A key created there is a secret — it\nis never pasted into a chat, committed, or shipped to a browser. Working rules and a leak\nchecklist are on API keys.\n\n## Earn\n\nEarn is where credits that are not a purchase show up. It is a record of what was credited\nand when, and it is not the same view as Usage, which records what was spent.\n\n## Account standing\n\nStanding lists warnings, restrictions and blocks with their reason and dates. Two rules\nmatter: a restriction is not always a block — read which one you have — and the fastest way\nto make a block permanent is to open a second account to get around it.\n\n## Deleting the account\n\n- Decide firstDeletion is immediate and cannot be undone.\n\n- Open the deletion pageSettings → Account → Delete account, or freebuff.com/delete-account.\n\n- Type the confirmation phrasedelete my account, exactly.\n\n- Complete the checkand sign out; the session ends with the account.\n\nDeletion removes the account, its chats and its Sites projects with their databases and\nstored files. It is not a way to cancel a subscription quietly — deal with billing first,\nor the charge can outlive the account. And do not expect an email code to rescue you: an\naccount that is gone cannot confirm anything.\n\nQuestions about a deleted account go to support@freebuff.com or the account\nsupport channel in Discord. Do not paste personal data — email addresses, document numbers,\nphone numbers — into a public thread.\n\n## Short answers\n\nI signed in with Apple and cannot recover by email. Use the Apple button, or find the relay address in your Apple ID settings and use that.\n\nGoogle says the address belongs to another account. It does — sign in to that account, or use a different address.\n\nThe email change never confirmed. Both codes expire in about 10 minutes; start the change again rather than retrying the old codes.\n\nCountry verification failed on a normal connection. Check for a VPN, proxy, iCloud Private Relay or corporate network, try mobile data, and read country verification before retrying in a loop.\n\nMy balance looks wrong. Check the model multiplier and whether you are reading the daily pool or the wallet — see plans and allowances.\n\nI deleted the account and lost a site. That is what deletion does. If the site still exists but the environment is unpublished, it can be republished; deleted resources cannot be restored.\n\nCan I have two accounts? One person, one account. A second account to get around a limit or a block is the case standing is built for."
    },
    {
      "path": "/country-verification/",
      "url": "https://docs.freebuff.page/country-verification/",
      "title": "Country verification",
      "description": "When the check is required, why it expires after 30 days, and how to pass it on the first try.",
      "section": "Plans and account",
      "headings": [
        {
          "id": "not-full-access",
          "text": "Not in a full-access country?",
          "level": 2,
          "url": "https://docs.freebuff.page/country-verification/#not-full-access"
        },
        {
          "id": "steps",
          "text": "In a full-access country, or just moved to one",
          "level": 2,
          "url": "https://docs.freebuff.page/country-verification/#steps"
        },
        {
          "id": "failed",
          "text": "\"It says the connection couldn't be verified\"",
          "level": 2,
          "url": "https://docs.freebuff.page/country-verification/#failed"
        },
        {
          "id": "still-stuck",
          "text": "Still stuck",
          "level": 2,
          "url": "https://docs.freebuff.page/country-verification/#still-stuck"
        }
      ],
      "text": "Country verification only matters if you live in a full-access country. The list of\nthose countries lives on the Discord server:\nthe full-access countries post.\n\n## Not in a full-access country?\n\nYou don't need to verify. Verifying can't change your access or your daily allowance\nthere. If you only changed countries, the next section applies to you.\n\n## In a full-access country, or just moved to one\n\n- Open the account pageGo to freebuff.com/account?tab=country while signed in.\n\n- Pick your country and confirmChoose the country, then tick the box that you're not on a VPN, proxy or iCloud Private Relay.\n\n- Use your own device and a normal connectionA phone or computer, on home internet or mobile data. A cloud PC, a VPN, a proxy or iCloud Private Relay won't work. On Safari, turn off \"Hide IP Address\" / \"Limit IP Address Tracking\".\n\nVerification lasts 30 days, so you may need to do it again later. It is a periodic\ncheck, not a one-time upgrade.\n\n## \"It says the connection couldn't be verified\"\n\n- Turn off any VPN, proxy and iCloud Private Relay, then switch to home internet or mobile data — try the other one if the first fails — and retry.\n\n- If you recently used the account from another region (travel, VPN), the page may ask you to try again later, or show a Request a review button. Use that button rather than retrying in a loop.\n\n- Corporate networks and cloud desktops are the usual cause: the check wants a residential connection you actually sit behind.\n\n## Still stuck\n\nCreate a ticket in\nthe account support channel\nand include:\n\n- the email you sign in with,\n\n- the country you chose,\n\n- the exact message the page shows — a screenshot is fine.\n\nRead the ticket guidelines first:\nthe ticket guidelines post.\nAnd never post your email address in a public channel."
    },
    {
      "path": "/collaborators/",
      "url": "https://docs.freebuff.page/collaborators/",
      "title": "Collaborators",
      "description": "Invite people to a Cloud project, know whose balance pays, and find the invitation when it hides.",
      "section": "Plans and account",
      "headings": [
        {
          "id": "invite",
          "text": "Invite someone",
          "level": 2,
          "url": "https://docs.freebuff.page/collaborators/#invite"
        },
        {
          "id": "where-is-it",
          "text": "Where the invitation hides",
          "level": 2,
          "url": "https://docs.freebuff.page/collaborators/#where-is-it"
        },
        {
          "id": "after-accept",
          "text": "After they accept",
          "level": 2,
          "url": "https://docs.freebuff.page/collaborators/#after-accept"
        },
        {
          "id": "troubleshooting",
          "text": "If the invitation doesn't arrive",
          "level": 2,
          "url": "https://docs.freebuff.page/collaborators/#troubleshooting"
        }
      ],
      "text": "Freebuff Web and Cloud let you invite collaborators to a project. Everyone in the project\nruns the same agent on the same files, but pays their own way.\n\n## Invite someone\n\n- Open the projectIn Freebuff Web, load the project you want to share.\n\n- Open MembersClick Members, next to Publish.\n\n- Enter their emailUse the Freebuff email address on their account, exactly.\n\n- Send itClick Invite.\n\n## Where the invitation hides\n\nThe invitation goes to their email inbox — and often straight into the Promotions\ntab in Gmail, or spam. Ask them to check there before you resend anything.\n\n## After they accept\n\n- They gain access to the project, with the same access you have.\n\n- Each user uses their own Freebuff session and their own freebucks. Your balance is not consumed by their activity.\n\n- Chats are shared as a single session: each person runs the same agent, but sessions and model choices are independent.\n\nBecause model choice is per person, a collaborator on a 3x model spends three hours per\nhour of their own balance, not yours. See plans and allowances.\n\n## If the invitation doesn't arrive\n\n- Check the Promotions folder and spam first.\n\n- Confirm the address is exactly the one associated with their Freebuff account — a typo sends the invite nowhere useful.\n\n- Still nothing? Invite a test account you control to confirm the flow works on your side, then report it with the project link and the address you invited."
    },
    {
      "path": "/api-keys/",
      "url": "https://docs.freebuff.page/api-keys/",
      "title": "API keys",
      "description": "Give a deployed app a model key without ever putting it in the browser.",
      "section": "Plans and account",
      "headings": [
        {
          "id": "where",
          "text": "Where keys come from",
          "level": 2,
          "url": "https://docs.freebuff.page/api-keys/#where"
        },
        {
          "id": "sites",
          "text": "Setting it on a deployed site",
          "level": 2,
          "url": "https://docs.freebuff.page/api-keys/#sites"
        },
        {
          "id": "local",
          "text": "Setting it locally",
          "level": 2,
          "url": "https://docs.freebuff.page/api-keys/#local"
        },
        {
          "id": "leaked",
          "text": "If a key leaks",
          "level": 2,
          "url": "https://docs.freebuff.page/api-keys/#leaked"
        }
      ],
      "text": "An app that talks to a model needs a key. The rule is one line long: the key lives on the\nserver, the browser never sees it, and the key is never committed.\n\n## Where keys come from\n\n- Freebuff API — an OpenAI-compatible endpoint, with a key you create and fund in your account at freebuff.com/account/api.\n\n- Another provider — the same pattern applies; only the base URL and model names change.\n\nKeys are billed to their owner. A key in a template that strangers can find is a key that\nspends your balance, which is why every serious template keeps it server-side and shows a\nsetup card until it is configured.\n\n## Setting it on a deployed site\n\n- Deploy onceSecrets attach to a deployment, so the environment has to exist first.\n\n- Add the secretPut the key into the environment's secrets, where it becomes an environment variable for the Worker.\n\n- Read it server-sideThe Worker reads the variable, calls the API, and returns only the result.\n\nNever send a key to the client, never inline it into a build, and never bake it into a\nstatic asset. A key in JavaScript is a public key, whatever the variable is called.\n\n## Setting it locally\n\n- Keep it in an untracked env file, and list that file in .gitignore.\n\n- Provide a committed example file — .env.example with variable names and no values — so the project documents what it needs.\n\n- If the app ships a development stub, a missing key should produce the setup card, not a crash or a silent fallback to a fake model.\n\n## If a key leaks\n\n- Revoke itGenerate a new key and delete the old one; rotating is faster than investigating.\n\n- Purge it from historyThe old value must leave the repository, not just the latest commit.\n\n- RedeployThe old deployment still has the old value until you set the new one.\n\nIf the key was pasted into a chat or a public channel, treat it as compromised even if\nnobody appears to have used it."
    },
    {
      "path": "/sites/",
      "url": "https://docs.freebuff.page/sites/",
      "title": "Sites",
      "description": "What Sites is made of, how publication really works, what each tab shows, and how previews, limits and deletion differ.",
      "section": "Sites and hosting",
      "headings": [
        {
          "id": "parts",
          "text": "What a site is made of",
          "level": 2,
          "url": "https://docs.freebuff.page/sites/#parts"
        },
        {
          "id": "create",
          "text": "Creating a site",
          "level": 2,
          "url": "https://docs.freebuff.page/sites/#create"
        },
        {
          "id": "previews",
          "text": "Three kinds of \"preview\"",
          "level": 2,
          "url": "https://docs.freebuff.page/sites/#previews"
        },
        {
          "id": "deploy",
          "text": "What happens on publish",
          "level": 2,
          "url": "https://docs.freebuff.page/sites/#deploy"
        },
        {
          "id": "wont-host",
          "text": "What Sites will host — and will not",
          "level": 2,
          "url": "https://docs.freebuff.page/sites/#wont-host"
        },
        {
          "id": "list",
          "text": "The Sites list",
          "level": 2,
          "url": "https://docs.freebuff.page/sites/#list"
        },
        {
          "id": "manage",
          "text": "The management page",
          "level": 2,
          "url": "https://docs.freebuff.page/sites/#manage"
        },
        {
          "id": "overview",
          "text": "Overview",
          "level": 3,
          "url": "https://docs.freebuff.page/sites/#overview"
        },
        {
          "id": "analytics",
          "text": "Analytics",
          "level": 3,
          "url": "https://docs.freebuff.page/sites/#analytics"
        },
        {
          "id": "users",
          "text": "Users",
          "level": 3,
          "url": "https://docs.freebuff.page/sites/#users"
        },
        {
          "id": "database",
          "text": "Database",
          "level": 3,
          "url": "https://docs.freebuff.page/sites/#database"
        },
        {
          "id": "storage",
          "text": "Storage",
          "level": 3,
          "url": "https://docs.freebuff.page/sites/#storage"
        },
        {
          "id": "secrets",
          "text": "Secrets",
          "level": 3,
          "url": "https://docs.freebuff.page/sites/#secrets"
        },
        {
          "id": "auth",
          "text": "Sign in with Freebuff",
          "level": 2,
          "url": "https://docs.freebuff.page/sites/#auth"
        },
        {
          "id": "realtime",
          "text": "Realtime",
          "level": 2,
          "url": "https://docs.freebuff.page/sites/#realtime"
        },
        {
          "id": "domain",
          "text": "The Freebuff address",
          "level": 2,
          "url": "https://docs.freebuff.page/sites/#domain"
        },
        {
          "id": "custom-domain",
          "text": "Your own domain",
          "level": 2,
          "url": "https://docs.freebuff.page/sites/#custom-domain"
        },
        {
          "id": "quota",
          "text": "Publication slots",
          "level": 2,
          "url": "https://docs.freebuff.page/sites/#quota"
        },
        {
          "id": "usage",
          "text": "Usage limits",
          "level": 2,
          "url": "https://docs.freebuff.page/sites/#usage"
        },
        {
          "id": "paused",
          "text": "Paused, Checking and what they mean",
          "level": 2,
          "url": "https://docs.freebuff.page/sites/#paused"
        },
        {
          "id": "unpublish",
          "text": "Unpublish and delete are different",
          "level": 2,
          "url": "https://docs.freebuff.page/sites/#unpublish"
        },
        {
          "id": "troubleshooting",
          "text": "If something does not work",
          "level": 2,
          "url": "https://docs.freebuff.page/sites/#troubleshooting"
        },
        {
          "id": "site-not-open",
          "text": "The site does not open",
          "level": 3,
          "url": "https://docs.freebuff.page/sites/#site-not-open"
        },
        {
          "id": "publish-failed",
          "text": "Publishing failed",
          "level": 3,
          "url": "https://docs.freebuff.page/sites/#publish-failed"
        },
        {
          "id": "data-missing",
          "text": "Data is missing",
          "level": 3,
          "url": "https://docs.freebuff.page/sites/#data-missing"
        },
        {
          "id": "sign-in-fails",
          "text": "Sign-in does not work",
          "level": 3,
          "url": "https://docs.freebuff.page/sites/#sign-in-fails"
        },
        {
          "id": "op-stuck",
          "text": "The operation is stuck or its result is unknown",
          "level": 3,
          "url": "https://docs.freebuff.page/sites/#op-stuck"
        }
      ],
      "text": "Freebuff Sites builds, publishes and runs a website for you: its address, its database, its\nfiles, sign-in for its users, and the limits around all of it. What actually ships is a\nCloudflare Worker plus static assets, which is why the same button serves an API, a\ndatabase-backed app and a plain marketing page.\n\nSites replaced the older Freebuff Web product. Existing projects were not\nswitched automatically: they still live at\nfreebuff.com/web and can be copied across — see\nlegacy projects.\n\nEnvironments Preview · Production\n\nRuns on Cloudflare Workers + static assets\n\nResources D1 database · R2 files · secrets · sign-in · realtime\n\nPublication slots 6 published sites · 10 saved sites\n\n## What a site is made of\n\n- The project — the record with a name, and the container for everything below.\n\n- Preview — an environment for checking work, with its own URL.\n\n- Production — the environment people actually visit.\n\n- Code and static files — the Worker and its public assets.\n\n- Resources, when you need them — database, file storage, secrets, sign-in, realtime.\n\nPreview and Production deploy separately and own separate resources. Creating a database for\nPreview does not create one for Production, and publishing Preview does not publish\nProduction.\n\nPreview is not private. Once published, its address is reachable from the\ninternet. Do not put real customer data, live keys or half-built features there unless you\nare willing to show them to strangers.\n\n## Creating a site\n\nIn Sites, press Create and start empty or from a template. Then:\n\n- Describe the siteWhat it is for, who it is for, what it must do.\n\n- Let the agent build itPages, routes and data access.\n\n- Look at the previewA dev server, not a publication — see three kinds of preview.\n\n- Ask for changesIterate until it is right.\n\n- Publish PreviewAn address you can share.\n\n- Publish ProductionA separate, deliberate step.\n\nThe chat has a Publish button that runs the build and publish without an\nextra turn from the agent. If it fails, Fix with agent hands the error to\nthe agent to repair. Creating the site record and publishing it are different actions: a\nsaved site, or even a URL, does not mean anything is being served.\n\n## Three kinds of \"preview\"\n\n| What it is | Public? |\n\nDev preview | A running dev server showing current changes | Not a publication |\n\nSites Preview | A published environment with its own address and resources | Yes |\n\nSites Production | The main published environment | Yes |\n\nA dev server can run happily for an app that will never deploy — compatibility is a separate\nquestion, so check the build in the hosting environment before you promise anyone a launch.\n\n## What happens on publish\n\n- Build in the workspaceDesktop or Cloud builds the project.\n\n- Package the artifactsWorker code and public assets are prepared.\n\n- UploadThe finished build is sent to Sites.\n\n- DeploySites rolls it out in the chosen environment.\n\n- CheckPublication status and address are verified.\n\nThe Sites server does not build your source and does not run npm for you: it receives\nprepared artifacts. A successful upload is also not proof the site works — open it, load the\npages, watch for errors, hit the API, and if there is sign-in, complete the whole flow.\n\n## What Sites will host — and will not\n\nSites is for Cloudflare Workers-compatible apps and static files. In practice that covers\nstatic HTML, Vite/React/Vue/Svelte frontends, Workers-compatible server handlers, and\nNext.js through its supported OpenNext preparation — which builds the app, the Worker and\nthe framework cache. Uploading a plain .next folder is not enough.\n\n- A long-running Node, Bun or Python server, a container, or a background daemon.\n\n- Native addons, or anything that needs a persistent local filesystem.\n\n- Frameworks without a verified Workers adapter.\n\nEven inside a supported project, a single library or route can be incompatible. None of this\nis a dead end: because a site is just a Worker, it can move to your own Cloudflare account —\nsee taking your project elsewhere.\n\n## The Sites list\n\nThe list shows whether Production is published and whether a Preview exists, and surfaces\nstates like Paused or Checking. You can create a site,\nsearch by name and open its management page. Viewing the list in the browser requires being\nsigned in.\n\n## The management page\n\nA Preview/Production switch sits at the top, and the tabs below belong to the selected\nenvironment.\n\n### Overview\n\nName and state, the time of the last deploy, attached resources, publication controls and\ndeletion. The states mean different things:\n\nState | Meaning |\n\nNot deployed | Nothing has been uploaded to this environment yet |\n\nUnpublished | A deployment exists but is not being served |\n\nDeployed | A build was accepted; check publication separately |\n\nPaused | An account limit was reached; requests may stop, data stays |\n\nChecking | Waiting for fresh usage data — not necessarily over a limit |\n\n### Analytics\n\nRequests, Worker errors and the success rate over the last 24 hours. That is\nnot a visitor count: one visitor can send many requests.\n\n### Users\n\nWith sign-in enabled: total users, new users and sign-ins for the selected period — 7, 30 or\n90 days — a searchable list by name or email, and first and last sign-in when known.\nSign-in statistics start from the moment the analytics are enabled and do not include token\nrefreshes.\n\n### Database\n\nA viewer for the attached SQL database: pick a table, page through rows. If nothing has been\ncreated yet, the panel says so. The database is D1, SQLite-compatible, suited\nto users, tasks, comments and saved app state — and it is queried from server-side code, not\nfrom the browser. See storage and data.\n\n### Storage\n\nThe objects in file storage with name, size and modified time, paginated. It is\nR2: objects, not tables. Images, uploads and documents belong here; rows\nbelong in the database.\n\n### Secrets\n\nServer-side values such as a third-party API key. You can add, replace and delete them; the\nlist shows names, never values, and the value is entered in the panel rather than in the\nchat.\n\n- Deploy the environment first — secrets attach to a deployment.\n\n- Names are uppercase letters, digits and _, starting with a letter.\n\n- Some names are reserved by the platform.\n\n- The same name in Preview and Production is two separate secrets.\n\n- The project limit is 25 user variables across environments.\n\nNever send a secret through chat, and never put one in a public asset or a repository. See\nAPI keys.\n\n## Sign in with Freebuff\n\n- Visitor opens the siteand chooses to sign in with Freebuff.\n\n- Authorisesin the browser.\n\n- Returnsto your site with a session.\n\n- Your code decideswhat that user may read and write.\n\nBeing signed in protects nothing by itself. The server has to check the user on every\nrequest and scope every query to that user's id — never to an id sent by the client.\nShared boards and rooms need a separate membership check.\n\nLocal development and the published site use different callback settings, and changing the\naddress means revisiting the sign-in configuration for the new origin.\n\n## Realtime\n\nSites includes managed realtime for room messages and notifications, presence, shared boards\nand cursors, and small room-based apps. It carries ephemeral events:\n\n- it does not keep permanent history;\n\n- it does not replay events a client missed;\n\n- it does not subscribe to database changes;\n\n- it does not replace server-side permission checks.\n\nA chat keeps its history in the database, reloads the current state after every reconnect,\nand treats client-published events as untrusted. Per environment the documented ceilings are\n128 connections, 32 occupied rooms and up to\n32 connections in one room — environment limits, not per-user ones.\n\n## The Freebuff address\n\nIn the Domains panel, Production can take an address of the form\nname.freebuff.page: Latin letters, digits and hyphens, with length and\nhyphen-placement rules. Availability is checked as you choose, but a name can still be taken\nby another site at the moment you save.\n\nChanging the address does not create a new site, and the previous address stops working — so\nthink about links you have already shared. Preview keeps its own generated address.\n\n## Your own domain\n\nProduction accepts your own subdomain: enter it, add the DNS record the panel\ngives you, run the connection check, and wait for DNS and HTTPS to confirm. Then make it the\nprimary address if that did not happen automatically. A subdomain, not an apex or a wildcard,\nand the record must point at the target issued for that connection. The 24–48 hour\npropagation window and the failure cases are in\ncustom domains.\n\n## Publication slots\n\nLimit | Value |\n\nPublished sites per owner | 6 |\n\nSaved sites in total, published or not | 10 |\n\nPreview and Production of one site share a single published slot — but to free that slot you\nmust unpublish every published environment of that site. Drafts and fully\nunpublished sites do not occupy a publication slot, though they still count toward saved\nsites.\n\n## Usage limits\n\nUsage is pooled across the owner: all sites, both environments. Requests, CPU time, database\nreads and writes, file operations and realtime events all draw on the same allowances, with\nrolling daily and monthly figures. Daily counters reset at 00:00 UTC, monthly\nones on the first at 00:00 UTC; storage does not reset because data keeps\noccupying space.\n\nThe exact numbers, and how to spend fewer invocations, are on\nlimits and invocations. The\nLimits tab shows both windows and warns at 80%. Measurements\narrive with a delay, so it is not an instant meter.\n\n## Paused, Checking and what they mean\n\n- Paused — the last measurement reached an account limit. Sites may stop serving requests; data is not deleted.\n\n- Checking — the system wants fresher usage data. It does not mean a limit was hit.\n\n- Unpublishing does not reset usage and does not delete anything. Stored databases and files keep counting.\n\n## Unpublish and delete are different\n\n| Unpublish | Delete site |\n\nCode and address | Kept | Removed |\n\nDatabase and files | Kept | Removed |\n\nSecrets | Kept | Removed |\n\nReversible | Yes — republish when limits allow | No |\n\nUnpublishing takes the environment offline while keeping everything. Deploying new code to an\nunpublished environment does not make it public again. Deleting asks you to type the site\nname and warns that it cannot be undone — it removes both environments, the database, the\nfiles and the secrets.\n\n## If something does not work\n\n### The site does not open\n\n- Check the environment and addressPreview and Production have different URLs.\n\n- Check publicationDeployed is not published.\n\n- Check the status and the Limits tabPaused explains itself; Checking does not.\n\n### Publishing failed\n\n- Read the errorIt usually names the incompatible route or dependency.\n\n- Try Fix with agentwhen the button is offered.\n\n- Verify Workers compatibilityof the project and its dependencies.\n\n- Open the result in a browserafter a successful publish — not just the build log.\n\n### Data is missing\n\n- Confirm which environment you are looking at — the database is per environment.\n\n- Confirm the database or bucket was created for that environment.\n\n- Confirm the app actually writes; in-memory state disappears with the Worker instance.\n\n### Sign-in does not work\n\n- Check that sign-in is actually wired into the app.\n\n- Check the real published address against the callback settings.\n\n- Complete the full sign-in and return — seeing the login page proves nothing.\n\n### The operation is stuck or its result is unknown\n\nDo not fire a series of different changes. Deploys and provisioning have in-flight states;\ninspect the operation instead, and retry the same request rather than a new one with\na different id."
    },
    {
      "path": "/limits-and-invocations/",
      "url": "https://docs.freebuff.page/limits-and-invocations/",
      "title": "Limits and invocations",
      "description": "The exact daily, monthly and storage quotas for Sites, and how to spend fewer invocations.",
      "section": "Sites and hosting",
      "headings": [
        {
          "id": "daily",
          "text": "Daily limits",
          "level": 2,
          "url": "https://docs.freebuff.page/limits-and-invocations/#daily"
        },
        {
          "id": "monthly",
          "text": "Monthly limits",
          "level": 2,
          "url": "https://docs.freebuff.page/limits-and-invocations/#monthly"
        },
        {
          "id": "storage",
          "text": "Storage limits",
          "level": 2,
          "url": "https://docs.freebuff.page/limits-and-invocations/#storage"
        },
        {
          "id": "invocation",
          "text": "What is an invocation?",
          "level": 2,
          "url": "https://docs.freebuff.page/limits-and-invocations/#invocation"
        },
        {
          "id": "over",
          "text": "Always over the limits?",
          "level": 2,
          "url": "https://docs.freebuff.page/limits-and-invocations/#over"
        }
      ],
      "text": "Quotas are shared across all your sites, preview versions included.\nFive small sites do not get five allowances — they draw down the same pool.\n\n## Daily limits\n\nLimit | Per day |\n\nInvocations | 10,000 |\n\nDatabase row writes | 10,000 |\n\nServer-side CPU time | 500 seconds |\n\nClass A S3 operations (listing and writing files) | 2,500 |\n\n## Monthly limits\n\nLimit | Per month |\n\nInvocations | 100,000 |\n\nServer-side CPU time | 5,000 seconds |\n\nDatabase row writes | 100,000 |\n\nDatabase row reads | 50,000,000 |\n\nClass A S3 operations | 25,000 |\n\nClass B S3 operations (reading files) | 250,000 |\n\nHow Cloudflare counts database rows, and what singles out a write from a read, is\ndocumented in\nCloudflare's D1 definitions.\n\n## Storage limits\n\nLimit | Value |\n\nTotal database storage (all sites) | 100 MB |\n\nTotal S3 storage (all sites) | 1 GB |\n\nSingle static asset | Under 9,512,842 bytes — 9,512,841 works, anything more does not |\n\nStatic assets per deployed worker | Up to 1,000 |\n\n## What is an invocation?\n\nAn invocation is every time your worker code runs. It is what the dashboard calls a\nrequest. One page view is rarely one invocation: each API call, each image served through\nthe Worker and each client-side fetch that reaches the server counts.\n\nReducing invocations is usually the cheapest optimisation, and it is often a build\nchange rather than a logic change:\n\n- Batch database work. Ask the agent to collapse several queries behind one request. Saving CPU matters less than saving invocations, so batching is worth it even when it does slightly more work per call.\n\n- Inline JS and CSS at build time. Fewer separate asset requests means fewer trips through the Worker.\n\n- Cache what does not change. A correct Cache-Control header on static responses keeps repeat views off your quota.\n\n- Do not poll. A client timer that hits an endpoint every few seconds burns a day of invocations before lunch. Push events or fetch on interaction instead.\n\n## Always over the limits?\n\nCopy this whole section into Freebuff and ask for help migrating — it is written to be\nusable as an instruction:\n\nBecause Freebuff Sites is just a Cloudflare Worker, you can migrate to Cloudflare\nWorkers, which has much higher daily limits for free. Sign up for a Cloudflare account\nand ask the agent to migrate the site to your own account. File storage moves to\nCloudflare R2, which requires a credit card on the Cloudflare account; without one, use\nan S3-compatible alternative, or redesign the feature to not need object storage.\n\nThe database cannot be dumped with Wrangler directly. It has to be exported through an\nauthenticated endpoint on a deployment of your worker, then imported into the new\ndatabase with Wrangler — and the _cf_KV table is unreadable in D1, so any\ndump script must skip it. Files are the same story at a lower level: download them in the\nsandbox and copy them across.\n\nThe full walkthrough is in taking your project elsewhere."
    },
    {
      "path": "/custom-domains/",
      "url": "https://docs.freebuff.page/custom-domains/",
      "title": "Custom domains",
      "description": "Point your own hostname at a site, and know how long the DNS wait really is.",
      "section": "Sites and hosting",
      "headings": [
        {
          "id": "two-options",
          "text": "Two kinds of address",
          "level": 2,
          "url": "https://docs.freebuff.page/custom-domains/#two-options"
        },
        {
          "id": "steps",
          "text": "Attach your domain",
          "level": 2,
          "url": "https://docs.freebuff.page/custom-domains/#steps"
        },
        {
          "id": "troubleshooting",
          "text": "If it never resolves",
          "level": 2,
          "url": "https://docs.freebuff.page/custom-domains/#troubleshooting"
        },
        {
          "id": "canonical",
          "text": "Keep one canonical address",
          "level": 2,
          "url": "https://docs.freebuff.page/custom-domains/#canonical"
        }
      ],
      "text": "## Two kinds of address\n\n- A Freebuff-supplied domain — assigned when you deploy. Nothing to configure, fine for previews and internal work.\n\n- Your own domain — better for anything you will put on a business card. You keep the registrar, and you can move the hostname later.\n\n## Attach your domain\n\n- Add the hostnameIn the site's settings, add the domain you want to serve. Use a subdomain such as docs if the apex is already doing something else.\n\n- Create the DNS recordsAt your registrar, add the records Sites shows you. Keep the existing records the panel does not mention.\n\n- WaitPropagation can take up to 24–48 hours. During that window the hostname may resolve for some networks and not others — that is normal, not a broken deploy.\n\n- VerifyOnce the record resolves, the hostname serves the published environment over HTTPS.\n\nPoint DNS at the environment you actually want people to see. A custom domain attached\nwhile production is unpublished will stay offline no matter how correct the DNS is.\n\n## If it never resolves\n\n- Check for a typo in the record name — www and the apex are separate records.\n\n- Check for a second, conflicting record on the same name (an old A record next to the new one).\n\n- Query the record directly rather than trusting the browser cache: dig your.domain, or ask the agent to run it.\n\n- If DNS is correct and the hostname still 404s, the problem is publication, not DNS — inspect the site's status.\n\n## Keep one canonical address\n\nSearch engines treat every hostname as a separate site. Pick one address as canonical,\nlink to it everywhere, and redirect the others to it. For a static site that is usually\none <link rel=\"canonical\"> per page plus a redirect from the\nFreebuff-supplied domain."
    },
    {
      "path": "/storage-and-data/",
      "url": "https://docs.freebuff.page/storage-and-data/",
      "title": "Storage and data",
      "description": "A database and object storage that arrive as bindings, with 100 MB and 1 GB ceilings.",
      "section": "Sites and hosting",
      "headings": [
        {
          "id": "isolation",
          "text": "Isolation",
          "level": 2,
          "url": "https://docs.freebuff.page/storage-and-data/#isolation"
        },
        {
          "id": "ceiling",
          "text": "The ceilings",
          "level": 2,
          "url": "https://docs.freebuff.page/storage-and-data/#ceiling"
        },
        {
          "id": "schema",
          "text": "Schema and migrations",
          "level": 2,
          "url": "https://docs.freebuff.page/storage-and-data/#schema"
        },
        {
          "id": "files",
          "text": "Files",
          "level": 2,
          "url": "https://docs.freebuff.page/storage-and-data/#files"
        },
        {
          "id": "durability",
          "text": "Backups and export",
          "level": 2,
          "url": "https://docs.freebuff.page/storage-and-data/#durability"
        },
        {
          "id": "quota-planning",
          "text": "Planning against the quota",
          "level": 2,
          "url": "https://docs.freebuff.page/storage-and-data/#quota-planning"
        }
      ],
      "text": "An environment can have a SQLite database and S3-compatible object storage, but neither is\nthere from the first deploy: storage is provisioned for preview or production separately, and\na deploy then attaches it. Once it exists you do not create an account or copy connection\nstrings — the database and the bucket arrive as bindings, available to your Worker as\nenv.DB and env.FILES.\n\n## Isolation\n\n- Preview and production each have their own database and bucket, and each is provisioned on its own. A test that writes in preview cannot touch production data.\n\n- Provisioning and deploying are two steps: the binding appears only after a deploy that follows it, because bindings are baked into the deployment.\n\n- Bindings are only reachable from server-side code. The browser never sees credentials, because there are none to see.\n\n## The ceilings\n\nResource | Limit |\n\nTotal database storage | 100 MB, shared across all sites |\n\nTotal object storage | 1 GB, shared across all sites |\n\nDatabase row writes | 10,000 per day, 100,000 per month |\n\nDatabase row reads | 50,000,000 per month |\n\nClass A operations (list, write) | 2,500 per day, 25,000 per month |\n\nClass B operations (read) | 250,000 per month |\n\n100 MB of SQLite is a lot of text and surprisingly little of anything else: image blobs\nbelong in object storage, and a table that stores base64 will hit the ceiling first. The\ncounting rules for rows are Cloudflare's —\nsee their definitions.\n\n## Schema and migrations\n\nThere is no arbitrary SQL console in Sites, and that is a feature: the schema lives in\nyour code. Ask the agent to keep an idempotent migration path — create-if-not-exists\nstatements run at startup, or a small migration table — so a fresh environment comes up\ncorrectly and an existing one is upgraded in place.\n\nQuery with bound parameters, never string interpolation, and scope every query by the\nsigned-in user. A shared database plus a client-supplied id is the most common way to\nleak another user's rows.\n\n## Files\n\nObject storage is for uploads and anything binary. Store metadata in the database, the\nbytes in the bucket, and check ownership on the way out — the key alone should never be\ntreated as permission.\n\n## Backups and export\n\nDatabase and files are as durable as the platform, and as portable as an export. Before\nyou depend on them, know the exit: the database exports through an authenticated endpoint\nand imports with Wrangler, and files can be downloaded and copied to any S3-compatible\nservice. The steps are in\ntaking your project elsewhere.\n\n## Planning against the quota\n\n- Log every write path and estimate writes per user action; a \"like\" button is a row write per tap.\n\n- Cache reads in the Worker or the browser before adding an index — CPU seconds are the tighter constraint on a small plan.\n\n- Keep uploaded originals out of the database and serve resized copies from the bucket."
    },
    {
      "path": "/legacy-projects/",
      "url": "https://docs.freebuff.page/legacy-projects/",
      "title": "Legacy projects",
      "description": "Old Freebuff Web and Cloud projects still exist — here is what Copy does and does not carry over.",
      "section": "Sites and hosting",
      "headings": [
        {
          "id": "where",
          "text": "Find the old projects",
          "level": 2,
          "url": "https://docs.freebuff.page/legacy-projects/#where"
        },
        {
          "id": "what-copies",
          "text": "What Copy carries over",
          "level": 2,
          "url": "https://docs.freebuff.page/legacy-projects/#what-copies"
        },
        {
          "id": "after",
          "text": "After the copy",
          "level": 2,
          "url": "https://docs.freebuff.page/legacy-projects/#after"
        }
      ],
      "text": "Freebuff Web was superseded by Freebuff Sites. Your previous projects were not switched\nover automatically: they are still available at\nfreebuff.com/web, and you bring them across one at\na time.\n\n## Find the old projects\n\n- Open Projects → LegacyIt shows \"Start your first project.\" plus a clock-icon Legacy row, and the dialog has two tabs — Freebuff Web and Freebuff Cloud.\n\n- Find your projectEach row shows the project name, its origin and the date, with a Copy button. Some legacy projects are not available to copy — a supported list is not guaranteed.\n\n- Select CopyThis creates a new project from the saved files, including uncommitted changes.\n\n## What Copy carries over\n\nItem | Copied? |\n\nSaved files | Yes |\n\nUncommitted changes | Yes |\n\nChats with the agent | No — they stay in the legacy project |\n\nGit history | No |\n\nDependencies | No |\n\nIgnored files such as .env | No |\n\nThe project's database | No |\n\nYour legacy project is not changed by the copy. Old conversations stay where they are and\nyou can keep reading them there, which is why the agent's history is not duplicated into\nthe new project.\n\nBecause the database is not copied, a data-driven app will come up empty until you\nrecreate its schema and data — the schema migration is work you have to ask for. The\nMigrate to Self-Hosted Convex and Download backup buttons are no longer\navailable in the legacy workspace, so if the old records matter, contact support with the\nproject link and say whether you need development or production data. Keep the original\nproject until that is answered.\n\n## After the copy\n\n- Recreate the environment: bindings, storage and secret values are never carried across a copy.\n\n- Install dependencies of record — node_modules was intentionally left behind.\n\n- Deploy to preview and click through the app before you publish production.\n\nIf you would rather not depend on this platform at all, the same project can go to your\nown Cloudflare account instead:\ntaking your project elsewhere."
    },
    {
      "path": "/git-and-deploy/",
      "url": "https://docs.freebuff.page/git-and-deploy/",
      "title": "Git and deploy",
      "description": "Connect a repository, get Cloud aligned with it, verify the preview, then deploy.",
      "section": "Moving code and data",
      "headings": [
        {
          "id": "put-it-on-github",
          "text": "Put the project on GitHub",
          "level": 2,
          "url": "https://docs.freebuff.page/git-and-deploy/#put-it-on-github"
        },
        {
          "id": "connect",
          "text": "Connect GitHub to Freebuff",
          "level": 2,
          "url": "https://docs.freebuff.page/git-and-deploy/#connect"
        },
        {
          "id": "align",
          "text": "Align Cloud with the repository",
          "level": 2,
          "url": "https://docs.freebuff.page/git-and-deploy/#align"
        },
        {
          "id": "iterate",
          "text": "Iterate, then deploy",
          "level": 2,
          "url": "https://docs.freebuff.page/git-and-deploy/#iterate"
        },
        {
          "id": "round-trip",
          "text": "Getting Cloud changes back",
          "level": 2,
          "url": "https://docs.freebuff.page/git-and-deploy/#round-trip"
        }
      ],
      "text": "GitHub is the seam between your computer and Cloud. Connect a repository and both sides\nwork on the same history, which makes \"where are my changes?\" a git pull\ninstead of an investigation.\n\n## Put the project on GitHub\n\nSkip this if the repository already exists.\n\n```\ngit init\ngit add .\ngit commit -m \"Initial commit\"\ngit branch -M main\ngit remote add origin https://github.com/<your-username>/<your-repo>.git\ngit push -u origin main\n```\n\n## Connect GitHub to Freebuff\n\n- Open the GitHub connectionIn Desktop: Settings → Connections → GitHub. In Cloud: the GitHub button in the project header.\n\n- AuthoriseClick Connect GitHub, sign in, and install the Freebuff hub app for the repository. It needs read/write access to push and pull.\n\n- Pick the repositoryBack in Freebuff, select the repository and connect it. If it is missing from the list, use Manage GitHub access in the same place and add it.\n\n## Align Cloud with the repository\n\nThe first time Cloud opens an existing repository it may not have the dependency versions\nor build output your project expects. Ask for the alignment explicitly:\n\n\"Pull from GitHub and align the project for compatibility with your environment.\"\n\nThen let it work, and ask it to verify the live preview when it is done.\nA preview that renders is the only proof that matters before you deploy.\n\n## Iterate, then deploy\n\n- Test in the previewOnce the preview renders, use it like a user: sign in, submit forms, reload.\n\n- DeployClick Deploy when you are satisfied. It runs a soft scan for a compatible Vite or React project.\n\n- If the scan failsSend the error message to the agent and let it fix the build. Repeated deploys of an unchanged build produce the same message.\n\n- Choose an addressA Freebuff-supplied domain, or your own — DNS takes up to 24–48 hours. See custom domains.\n\nDeploying is not the same as publishing. Check the environment's status before you tell\nanyone the site is live, and remember that preview and production keep separate data.\n\n## Getting Cloud changes back\n\nAsk the agent in the Cloud chat to push, naming a branch if you want one:\n\"push to a new branch called cloud-work\". Then, locally:\n\n```\ngit pull\n# or, for a new branch:\ngit fetch\ngit checkout cloud-work\n```\n\nThe chat-handoff alternative — and why a handoff copy never syncs back on its own — is in\nlocal to Cloud."
    },
    {
      "path": "/local-to-cloud/",
      "url": "https://docs.freebuff.page/local-to-cloud/",
      "title": "Local to Cloud",
      "description": "Two routes from your computer to Cloud, and which one actually gets the work back.",
      "section": "Moving code and data",
      "headings": [
        {
          "id": "before",
          "text": "Before you start",
          "level": 2,
          "url": "https://docs.freebuff.page/local-to-cloud/#before"
        },
        {
          "id": "route-a",
          "text": "Route A: send a copy to Cloud (quick, one-way)",
          "level": 2,
          "url": "https://docs.freebuff.page/local-to-cloud/#route-a"
        },
        {
          "id": "a-continue",
          "text": "Continue an existing local chat in Cloud",
          "level": 3,
          "url": "https://docs.freebuff.page/local-to-cloud/#a-continue"
        },
        {
          "id": "a-fresh",
          "text": "Start a fresh Cloud chat in a local project",
          "level": 3,
          "url": "https://docs.freebuff.page/local-to-cloud/#a-fresh"
        },
        {
          "id": "route-b",
          "text": "Route B: GitHub, so changes come back (recommended)",
          "level": 2,
          "url": "https://docs.freebuff.page/local-to-cloud/#route-b"
        },
        {
          "id": "good-to-know",
          "text": "Good to know",
          "level": 2,
          "url": "https://docs.freebuff.page/local-to-cloud/#good-to-know"
        }
      ],
      "text": "## Before you start\n\n- Update Freebuff Desktop to the latest version.\n\n- Make sure you are signed in — Cloud needs your account.\n\n- A Cloud chat works on a copy of your project. Changes made in Cloud are not copied back to your folder automatically. If you want them back on your computer, use Route B.\n\n## Route A: send a copy to Cloud (quick, one-way)\n\nUse this when Cloud should keep working on something and you do not need the changes back\nin your local folder.\n\n### Continue an existing local chat in Cloud\n\n- Wait for the current replyThe handoff starts from a finished turn.\n\n- Switch the targetIn the composer, open the dropdown next to the model picker and change Local to Cloud. Or open the chat's menu in the sidebar and choose Continue in Cloud.\n\n- ConfirmClick Continue in Cloud. Chat history and current project files are copied to Cloud and the chat continues there.\n\n### Start a fresh Cloud chat in a local project\n\nStart a new chat in the project, switch the dropdown to Cloud before sending the\nfirst message, then send it.\n\n\"A message is too large to move to Cloud\" — open the chat's menu in the\nsidebar, choose Retry cloud handoff, and click Continue in Cloud again.\nIf it still fails, click Keep this chat local to go back to working on your\ncomputer, or start a new Cloud chat and paste in the context that matters.\n\n## Route B: GitHub, so changes come back (recommended)\n\n- Get the repository onto GitHubCommands are in Git and deploy.\n\n- Connect GitHub to FreebuffSettings → Connections → GitHub, then give the Freebuff app access to that repository.\n\n- Start a Cloud chat on the repoNew chat → Select GitHub repository → pick repository and branch → Use repository → send your first message.\n\n- Bring the work homeAsk the Cloud agent to push, then git pull locally, or git fetch and git checkout <branch> for a new branch.\n\n## Good to know\n\n- Each Cloud chat has its own copy of the files. Two Cloud chats do not see each other's unsaved changes.\n\n- Route A copies are a snapshot: local edits made after the handoff never reach that Cloud chat.\n\n- You can always come back. Local chats work directly on your project folder, so switching a project back to Local chats is safe."
    },
    {
      "path": "/export-and-self-host/",
      "url": "https://docs.freebuff.page/export-and-self-host/",
      "title": "Taking your project elsewhere",
      "description": "Take the code through GitHub, find out what happens to legacy database records, and host on your own Cloudflare.",
      "section": "Moving code and data",
      "headings": [
        {
          "id": "code",
          "text": "1. Code",
          "level": 2,
          "url": "https://docs.freebuff.page/export-and-self-host/#code"
        },
        {
          "id": "convex",
          "text": "2. The database does not travel with the code",
          "level": 2,
          "url": "https://docs.freebuff.page/export-and-self-host/#convex"
        },
        {
          "id": "backup",
          "text": "3. Data held by Sites",
          "level": 2,
          "url": "https://docs.freebuff.page/export-and-self-host/#backup"
        },
        {
          "id": "frontend",
          "text": "Self-hosting the frontend",
          "level": 2,
          "url": "https://docs.freebuff.page/export-and-self-host/#frontend"
        },
        {
          "id": "leave-sites",
          "text": "Moving off Sites to your own Cloudflare",
          "level": 2,
          "url": "https://docs.freebuff.page/export-and-self-host/#leave-sites"
        },
        {
          "id": "steps-out",
          "text": "Steps",
          "level": 3,
          "url": "https://docs.freebuff.page/export-and-self-host/#steps-out"
        },
        {
          "id": "what-you-lose",
          "text": "What you leave behind",
          "level": 2,
          "url": "https://docs.freebuff.page/export-and-self-host/#what-you-lose"
        }
      ],
      "text": "Everything you build here is portable, and the exit is documented on purpose. There are\nthree separate things to move: the code, the database, and the hosting. Each can go\nindependently.\n\n## 1. Code\n\n- Open the projectIn its workspace, connect GitHub and authorize Freebuff.\n\n- Choose a repositoryPush to a new repository or an existing one.\n\n- Take the sourceOnce the push finishes, open the repo on GitHub to clone it or download a ZIP. Your convex/ folder — schema, queries, mutations, actions — lives in that same repo, so this is the complete source.\n\nCheck the repository before you rely on it as a backup: a push that never finished leaves\nan empty or partial repo. Keep secrets and environment variables separate — never commit\nthem to a public repository.\n\n## 2. The database does not travel with the code\n\nCopying code does not copy database records, so check which database your app uses before\nyou move it. A convex/ folder holds backend code and schema, not the records\nthemselves.\n\nThe old Migrate to Self-Hosted Convex and Download backup buttons are no\nlonger available in the legacy workspace. If you need legacy data, contact support with\nyour project link and say whether you need development or production data — and do not\ndelete the original project while that is being checked.\n\nIf you already control the database, use your provider's own backup and import options.\nFor a Convex deployment you own, npx convex export writes a standard zip and\nnpx convex import loads it into any deployment.\n\n## 3. Data held by Sites\n\nIf the app runs on Sites, its database is D1 rather than Convex, and there is no backup\nbutton to press. The export is an authenticated endpoint plus a Wrangler import — the\nsequence is under moving off Sites below.\n\n## Self-hosting the frontend\n\n```\ngit clone <your-repo> && cd <your-repo>\n# set the names your .env.example documents, usually:\n# CONVEX_DEPLOYMENT\n# VITE_CONVEX_URL\nnpx convex deploy\n# then host the build output anywhere: Vercel, Netlify, your own server\n```\n\n## Moving off Sites to your own Cloudflare\n\nFreebuff Sites runs on Cloudflare Workers for Platforms, so a site is already a Worker.\nMoving it to a Cloudflare account you own raises the quotas — the free plan has much higher\ndaily limits — and it is the recommended fix when a project outgrows\nthe shared pool.\n\n### Steps\n\n- Create a Cloudflare accountThen ask the agent to migrate the site to your account.\n\n- Set up storageObject storage becomes Cloudflare R2, which needs a credit or debit card on the account. Without one, use an S3-compatible alternative, or remove the features that need object storage.\n\n- Export the databaseWrangler cannot dump the database directly. Add an authenticated endpoint to your deployment, dump through it, then import with Wrangler into the new database.\n\n- Skip _cf_KVThat table is unreadable in D1 and will break a dump script. Exclude it explicitly.\n\n- Copy the filesDownload objects in the sandbox and upload them to R2 (or the alternative). An authenticated endpoint is the practical way to get them out in bulk.\n\n- Recreate configurationBindings, secrets and environment variables are not exportable; set them on the new account and deploy.\n\nDo not route the old and new deployments at the same database. Copy the data, cut DNS\nover, and keep the old environment read-only for a day so you can compare.\n\n## What you leave behind\n\n- The Freebuff preview/production convenience and its shared quotas.\n\n- Collaborator access through Freebuff — teammates need their own access to your repository and Cloudflare account.\n\n- Nothing else: the code, the schema and the data are all yours, and the repo is the same one you already had."
    },
    {
      "path": "/integrations/",
      "url": "https://docs.freebuff.page/integrations/",
      "title": "Integrations",
      "description": "Connected apps the agent can act in — how an account is connected, what actually lands in the model's context, and the four tools it uses.",
      "section": "Extend",
      "headings": [
        {
          "id": "what",
          "text": "Three things called \"integration\"",
          "level": 2,
          "url": "https://docs.freebuff.page/integrations/#what"
        },
        {
          "id": "where",
          "text": "Where they work",
          "level": 2,
          "url": "https://docs.freebuff.page/integrations/#where"
        },
        {
          "id": "apps",
          "text": "Which apps you can connect",
          "level": 2,
          "url": "https://docs.freebuff.page/integrations/#apps"
        },
        {
          "id": "connect",
          "text": "Connecting an account",
          "level": 2,
          "url": "https://docs.freebuff.page/integrations/#connect"
        },
        {
          "id": "context",
          "text": "What actually reaches the model",
          "level": 2,
          "url": "https://docs.freebuff.page/integrations/#context"
        },
        {
          "id": "tools",
          "text": "The four tools",
          "level": 2,
          "url": "https://docs.freebuff.page/integrations/#tools"
        },
        {
          "id": "safety",
          "text": "Rules the server enforces",
          "level": 2,
          "url": "https://docs.freebuff.page/integrations/#safety"
        },
        {
          "id": "tokens",
          "text": "Credentials never enter chat",
          "level": 2,
          "url": "https://docs.freebuff.page/integrations/#tokens"
        },
        {
          "id": "surface",
          "text": "Desktop and Cloud behave slightly differently",
          "level": 2,
          "url": "https://docs.freebuff.page/integrations/#surface"
        },
        {
          "id": "limits",
          "text": "What integrations do not do",
          "level": 2,
          "url": "https://docs.freebuff.page/integrations/#limits"
        },
        {
          "id": "custom",
          "text": "No integration for your service?",
          "level": 2,
          "url": "https://docs.freebuff.page/integrations/#custom"
        }
      ],
      "text": "An integration connects an outside account — mail, calendar, drive, an issue tracker — so\nthe agent can search it and act in it on your behalf. An integration is an\naccount you authorise; an MCP server is a\ntool process you run. They look similar in the tool list and are\nconfigured in completely different places.\n\nConnected apps Gmail · Calendar · Drive · Slack · Notion · Linear · PostHog · Sentry · Stripe · Supabase · HubSpot · Outlook\n\nAccounts up to 5 per integration\n\nTools search_integration_tools · get_integration_tool_schemas · run_integration_tools · connect_integration\n\nPrompt # Integrations section, rebuilt every turn\n\n## Three things called \"integration\"\n\nOnly the first one is what this page is about.\n\nMechanism | What it is | Where it lives |\n\nConnected apps |\nAn account you authorise (Gmail, Slack, Notion…) that the agent can act in |\nYour Freebuff account, on the Integrations page |\n\nMCP connectors |\nA tool server you add yourself |\n.agents/mcp.json and Desktop Connectors — see MCP servers |\n\nProject integrations (legacy Web) |\nOld per-project records that are not the same thing as connected accounts |\nLegacy project settings only |\n\n## Where they work\n\nSurface | Freebuff agent | Claude Code / Codex |\n\nDesktop | Yes, through the local harness | Yes, in their local modes |\n\nCloud | Yes | Through the freebuff integrations helper |\n\nLegacy Web (Convex runner) | No integration tools | No |\n\nThe helper is the odd one out: in Cloud, Claude Code and Codex do not get the tools\ndirectly, they reach them through freebuff integrations. Those tools are\navailable in Build mode, not in plan mode, and a Cloud Projects subagent\ndoes not get them either.\n\n## Which apps you can connect\n\nThe recommended list is Gmail, Google Calendar, Google Drive, Slack, Notion, Linear,\nPostHog, Sentry, Stripe, Supabase, HubSpot and Outlook; anything else comes from catalog\nsearch. Being listed does not mean a given account will connect — availability depends on\nconfiguration and on the authorisation succeeding.\n\nOne integration can hold up to five accounts. Two Gmails, a personal and a\nwork Slack: each is a separate connection with its own label and its own permissions.\n\n## Connecting an account\n\n- Pick the appOpen Integrations and choose the service.\n\n- Get the authorisation linkFreebuff creates a link scoped to you and to that app.\n\n- Authorise in the browserThe provider's own consent screen decides what is granted.\n\n- Come backFreebuff binds the result to the signed-in account, not to whoever is nearby.\n\n- Check the listThe connection appears with its account label and can be used in the next turn.\n\nThe agent can offer a connection too. It calls connect_integration and a button\nappears in the chat — but that call only offers. Nothing is connected until you\npress the button and finish the authorisation. Disconnecting is checked the same way: the\nserver verifies the account belongs to the signed-in user before removing it.\n\n## What actually reaches the model\n\nAt turn time Freebuff fetches your connections and writes an\n# Integrations section into the agent's instructions. That is\nthe whole of it — a section describing what exists, not a dump of your data.\n\nGoes into the prompt | Does not go into the prompt |\n\nNames and IDs of connected apps | The contents of your mail, files or issues |\n\nAccount labels, when they exist | OAuth tokens or API keys |\n\nShort handles for picking an account | Results of tools that have not been called |\n\nHow to search for and call a tool | Anything from apps you have not connected |\n\nTreat mail, documents and results as untrusted data; confirm sends, deletes and other changes | — |\n\nReal data enters the context the same way it does for any tool: the agent calls a tool, the\nresult comes back as the tool's output. Nothing is pre-fetched. Account labels can contain\nan email address — that is the point of a label — while the credentials behind the\nconnection stay on the server and are never added to the instructions.\n\n## The four tools\n\n- search_integration_tools — finds the action you need from a plain description: \"find unread emails from this week\".\n\n- get_integration_tool_schemas — returns the exact argument schema when the search did not include it.\n\n- run_integration_tools — executes the found actions; up to eight independent calls in parallel.\n\n- connect_integration — offers a connection for an app that is not connected yet. It is the only tool available when nothing is connected.\n\nA turn, end to end:\n\n- Ask\"Find the invoice from March and reply to the thread.\"\n\n- Read the sectionThe agent sees Gmail connected, with two labelled accounts.\n\n- Searchsearch_integration_tools returns the search and send actions.\n\n- Read the schemaget_integration_tool_schemas supplies the exact arguments.\n\n- Callrun_integration_tools runs the search; the result becomes tool output in the context.\n\n- Stop before sendingTwo accounts match, so the agent asks which one — or drafts and waits for your go-ahead.\n\n## Rules the server enforces\n\n- Only your connections. A tool can only run against an app you have connected; there is no path to someone else's account.\n\n- No silent default account. With several accounts, the agent has to name one. If a write or a send is ambiguous, it asks.\n\n- Plan mode is read-only. Only tools marked read-only and non-destructive are reachable, so a planning turn cannot send or delete through an integration.\n\n- Results are capped. A large result may arrive as a truncated preview rather than the full document — ask for a narrower query instead of assuming the tail is missing.\n\n- Text is data. The instructions say not to follow directions found in emails or documents. If the agent ever looks like it is obeying a sentence it read in your inbox, stop it and say so.\n\n## Credentials never enter chat\n\nDo not paste a token, password or OAuth code into a conversation, and do not write one into\na file the agent can read and then quote. Authorisation happens in the browser for\nintegrations; for keys your own app needs, use environment variables locally and\nenvironment secrets for deployed Sites — see API keys.\n\n## Desktop and Cloud behave slightly differently\n\n| Desktop | Cloud |\n\nWhere you connect | Integrations in the app | Integrations on the website |\n\nWhen the list is fetched | Before each local turn, injected into the local harness | When the turn is prepared on the server |\n\nFetch timeout | 1.5 seconds | 2.5 seconds |\n\nIf the fetch fails | The turn runs without integration tools; expired connections surface as a failed call | The turn runs without integration tools for that turn |\n\nA slow or failed fetch never blocks the turn — it only means integration tools are absent\nuntil the next one. If a tool is missing for no obvious reason, that is the first thing to\nsuspect.\n\n## What integrations do not do\n\n- They do not grant access to accounts you have not connected, and they cannot borrow another user's connection.\n\n- They do not exist on a different machine unless you connect the account there too — connections belong to the account, the tool list belongs to the turn.\n\n- They do not make the agent a background service: a turn has to be running for it to act, which is what Mission mode is for.\n\n- They are not MCP. An MCP server is not approved through the Integrations page, and an integration is not configured in .agents/mcp.json.\n\n## No integration for your service?\n\nIf the service exposes an HTTP API or a CLI, the agent can usually call it directly with a\nkey from the environment. When the tooling is local and you want it reused across turns,\nwrap it as an MCP server instead of rebuilding the calls each\ntime."
    },
    {
      "path": "/mcp-servers/",
      "url": "https://docs.freebuff.page/mcp-servers/",
      "title": "MCP servers",
      "description": "Extra tools for the agent — where the config is read from, what the CLI trusts, how Desktop approves a server, and which transports actually work.",
      "section": "Extend",
      "headings": [
        {
          "id": "cli",
          "text": "CLI: where the configuration comes from",
          "level": 2,
          "url": "https://docs.freebuff.page/mcp-servers/#cli"
        },
        {
          "id": "trust",
          "text": "CLI: trusting a project",
          "level": 2,
          "url": "https://docs.freebuff.page/mcp-servers/#trust"
        },
        {
          "id": "desktop",
          "text": "Desktop: Connectors",
          "level": 2,
          "url": "https://docs.freebuff.page/mcp-servers/#desktop"
        },
        {
          "id": "transports",
          "text": "Transports",
          "level": 2,
          "url": "https://docs.freebuff.page/mcp-servers/#transports"
        },
        {
          "id": "tools",
          "text": "How the agent sees the tools",
          "level": 2,
          "url": "https://docs.freebuff.page/mcp-servers/#tools"
        },
        {
          "id": "troubleshooting",
          "text": "If it doesn't work",
          "level": 2,
          "url": "https://docs.freebuff.page/mcp-servers/#troubleshooting"
        },
        {
          "id": "limits",
          "text": "What to keep in mind",
          "level": 2,
          "url": "https://docs.freebuff.page/mcp-servers/#limits"
        },
        {
          "id": "ticket",
          "text": "Still stuck?",
          "level": 2,
          "url": "https://docs.freebuff.page/mcp-servers/#ticket"
        }
      ],
      "text": "MCP gives the agent tools it does not ship with: Godot, Blender, Playwright, an internal\nAPI. A server exposes tools; the agent looks them up and calls them. Two things decide\nwhether a server is available — the transport it speaks, and the\nscope it was configured in.\n\nConfig .agents/mcp.json · ~/.agents/mcp.json\n\nDesktop state ~/.freebuff/mcp.json (approvals, connection state)\n\nTransports stdio · Streamable HTTP · SSE (CLI only)\n\nAgent tools search_mcp_tools · call_mcp_tool\n\n## CLI: where the configuration comes from\n\nThree files are read, in this order:\n\nOrder | Path | Scope |\n\n1 | .agents/mcp.json | Project root |\n\n2 | ../.agents/mcp.json | Parent directory — monorepos |\n\n3 | ~/.agents/mcp.json | Home directory, every project |\n\nLater wins. When two files define a server with the same name, the\nlater one replaces the earlier. A global ~/.agents/mcp.json silently\noverrides a project entry — the usual reason a server works in one repository and not\nin another.\n\n```\n{\n\"mcpServers\": {\n\"my-server\": {\n\"command\": \"npx\",\n\"args\": [\"-y\", \"PACKAGE_NAME\"],\n\"env\": { \"API_TOKEN\": \"$MY_API_TOKEN\" }\n}\n}\n}\n```\n\n$MY_API_TOKEN in env is resolved from the environment the CLI\nwas started in, not from the file. If the variable is missing, the server is skipped and\nthe log names the variable — never its value. Export it in your shell profile rather\nthan pasting a key into JSON.\n\n## CLI: trusting a project\n\nA project-level MCP server is code that runs on your machine, so the CLI asks before it\nstarts one from .agents in the current or parent directory. The prompt shows\nthe command or address, and declining skips both directories for that session.\n\n- Non-interactive runs skip untrusted directories unless you gave explicit permission — a scripted run will not quietly execute a repository's servers.\n\n- ~/.agents is yours. Servers from your home directory are trusted and never prompt.\n\n- Read before you trust. A cloned repository can ship its own server. Open .agents/mcp.json first; it is a short file.\n\n## Desktop: Connectors\n\n- Open ConnectorsSettings → MCP / Connectors. Presets are there, and so is Add server.\n\n- Add the serverPaste the mcpServers block from the server's own instructions, or pick it from the list.\n\n- Approve the commandDesktop validates the JSON and shows the command or address before anything runs. Nothing starts until you approve it.\n\n- Choose toolsAfter it connects, pick which tools the agent may use. Safe only leaves out the ones that change or delete things.\n\nThe tool list does not exist before the server starts or connects — that is why the\napproval step comes first and the tool picker second.\n\nDesktop writes the server definition to the shared ~/.agents/mcp.json, but\nkeeps its own approvals and connection state separately in\n~/.freebuff/mcp.json. Removing a server in Desktop also removes its entry\nfrom the shared CLI configuration, so the two surfaces do not drift apart.\n\n## Transports\n\nstdio\nStreamable HTTP\nSSE\n\nFreebuff starts a local process and talks to it over stdin and stdout. Both surfaces support this transport.\n\n```\n{\n\"mcpServers\": {\n\"godot\": {\n\"command\": \"python\",\n\"args\": [\"/full/path/to/godot_mcp/server.py\"]\n}\n}\n}\n```\n\nAlways use the absolute path to the server script, and check that python, node or npx runs in your own terminal first.\n\nFreebuff connects to a remote endpoint. Supported on both surfaces. HTTPS is required for a remote address; plain HTTP is accepted for localhost only.\n\n```\n{\n\"mcpServers\": {\n\"myApi\": {\n\"type\": \"http\",\n\"url\": \"https://api.example.com/mcp\",\n\"headers\": { \"Authorization\": \"$API_TOKEN\" }\n}\n}\n}\n```\n\nAn HTTP server can start without a browser. If it declares an\nAuthorization header, Desktop can run OAuth instead: sign-in opens in\nyour system browser, the token stays in memory until restart, and on Linux the\ncredential is stored through GNOME Keyring or KWallet rather than a plain file.\n\nThe CLI supports SSE. The Desktop app rejects an SSE entry — use Streamable HTTP there.\n\n```\n{\n\"mcpServers\": {\n\"streamingApi\": {\n\"type\": \"sse\",\n\"url\": \"https://stream.example.com/mcp/events\",\n\"headers\": { \"X-API-Key\": \"$STREAM_API_KEY\" }\n}\n}\n}\n```\n\nIf a server offers both, prefer Streamable HTTP: it works on both surfaces and survives reconnects better.\n\n## How the agent sees the tools\n\nThe model never gets the whole tool list. It has two tools for MCP:\nsearch_mcp_tools finds a server's tools by description, and\ncall_mcp_tool invokes one. Each call re-checks the permission, the\nconnection state and the arguments.\n\n- Mid-turn changes apply. Turn a server off, or narrow its permissions, while a turn is running and the next call can be refused.\n\n- Read-only is planned, not assumed. In plan mode only tools the server marks read-only are reachable, so a planning turn cannot change files through MCP.\n\n- Approvals are per tool. A server can be connected with half its tools hidden; that is a supported state, not a bug.\n\n## If it doesn't work\n\n- It will not start. Re-read the JSON, then the command, the arguments and the environment variables. Desktop refreshes the status after connecting; a stale badge is not a failure.\n\n- Tools are missing in Desktop. Check that the server is running and enabled, open its connector panel, then press Refresh.\n\n- Sign-in expired. Open the connector and press Reconnect.\n\n- The server is listed but nothing happens. A visible name with no tools is the expected \"not running\" state — start it or reconnect.\n\n- The first call fails. Common right after startup. Ask for the call again before debugging.\n\n- Another app must be open. Some servers need the host application (Unity, Blender) and a plugin inside it.\n\n## What to keep in mind\n\n- Scope is a directory, not a chat. A project server is available to every session in that project; a home server is available everywhere.\n\n- Windows. Paths and launch commands differ; use absolute paths and test the command in your own terminal first.\n\n- Cloud. Sessions in the browser do not see connectors configured on your desktop. See Desktop and Cloud.\n\n- Credentials. Never paste a token into mcp.json or into a chat. Environment variables locally; secrets for deployed Sites — see API keys.\n\n## Still stuck?\n\nCreate a ticket in\nthe account support channel\nwith the server name, the config you used (hide any keys), the transport, and the exact\nstatus or error you see."
    },
    {
      "path": "/project-rules/",
      "url": "https://docs.freebuff.page/project-rules/",
      "title": "Project instructions and rules",
      "description": "Which instruction files the agent reads, how long they may be, how MCP servers are discovered, and what is not supported.",
      "section": "Extend",
      "headings": [
        {
          "id": "files",
          "text": "Which file the agent reads",
          "level": 2,
          "url": "https://docs.freebuff.page/project-rules/#files"
        },
        {
          "id": "limit",
          "text": "Size limit and truncation",
          "level": 2,
          "url": "https://docs.freebuff.page/project-rules/#limit"
        },
        {
          "id": "toggle",
          "text": "It is a setting, not an automatic read",
          "level": 2,
          "url": "https://docs.freebuff.page/project-rules/#toggle"
        },
        {
          "id": "mcp",
          "text": "MCP servers",
          "level": 2,
          "url": "https://docs.freebuff.page/project-rules/#mcp"
        },
        {
          "id": "trust",
          "text": "Trust is a file on disk",
          "level": 3,
          "url": "https://docs.freebuff.page/project-rules/#trust"
        },
        {
          "id": "ignore",
          "text": "Ignore files",
          "level": 3,
          "url": "https://docs.freebuff.page/project-rules/#ignore"
        },
        {
          "id": "hooks",
          "text": "Hooks",
          "level": 2,
          "url": "https://docs.freebuff.page/project-rules/#hooks"
        },
        {
          "id": "permissions",
          "text": "What the agent may do",
          "level": 2,
          "url": "https://docs.freebuff.page/project-rules/#permissions"
        }
      ],
      "text": "A project can tell the agent how to behave: which file to read, what conventions to follow,\nwhich MCP servers to start. The mechanism differs between surfaces, and the differences are\nbig enough to write down.\n\nInstruction files AGENTS.md, then CLAUDE.md\n\nLimit 64,000 characters, longer content is truncated with a note\n\nDesktop default project instructions off until enabled\n\nMCP ~/.agents/mcp.json and, in Desktop, ~/.freebuff/mcp.json\n\nHooks file-change hooks are not supported in the SDK environment\n\n## Which file the agent reads\n\nIn the Desktop harness, the root AGENTS.md is the instruction file. If it is\nempty, CLAUDE.md is used instead; the Claude-style harness additionally reads\n.claude/CLAUDE.md. A file that cannot be read is skipped rather than treated as an\nerror, so a permissions problem can look like instructions that were ignored.\n\nThe CLI finds .agents/mcp.json by walking up from the project directory; the same\nwalk-up logic is what makes a home-level config reachable from any project. Do not assume a\nsingle global instruction file is read everywhere — the surfaces resolve their files\nseparately.\n\n## Size limit and truncation\n\nProject instructions are capped at 64,000 characters. Content past that point\nis cut and marked as truncated — the agent does not see it, and nothing warns you at write\ntime. A 2,000-line instruction file is therefore not \"thorough\"; it is a file whose second half\nis invisible.\n\nKeep instructions short and checkable: build command, test command, style rules, paths that\nmust not be touched. Prose about the product's philosophy competes with the actual task for\nthe same budget and loses.\n\n## It is a setting, not an automatic read\n\nIn Desktop the project-instruction field is off until the user turns it on. The hosted Web\nclient uses a different default for guest sessions. These are different surfaces with\ndifferent defaults, so \"the agent ignored my AGENTS.md\" is worth checking against\nthe setting before rewriting the file.\n\nThe security reason for the toggle is the same reason a repository you have not read is\ndangerous: instructions in a repo are input from whoever wrote the repo, and an agent that\nfollows them blindly will follow the wrong ones too.\n\n## MCP servers\n\nMCP servers are declared in JSON. Desktop reads a shared ~/.agents/mcp.json and\nits own sidecar ~/.freebuff/mcp.json; unset args, env\nand headers default to empty.\n\n- Errors are per server — a broken entry is reported in the interface instead of hiding the entries that work.\n\n- The environment is restricted — Desktop limits which variables from its own environment a server may inherit, so a server cannot read every secret the app can.\n\n- Merging is order-dependent — in the CLI, a later file wins for a server with the same name, which means the home config overrides the repository's.\n\n### Trust is a file on disk\n\nIn the CLI, executable agents and MCP configuration from a project's .agents\ndirectory — or from a parent directory — require trust. Trust is remembered per absolute path\nin <configDir>/trusted-agent-dirs.json.\n\n- Declining the prompt skips that directory for the run; it is not remembered as trusted.\n\n- In a non-interactive run there is nobody to ask, so an untrusted directory is skipped rather than loaded.\n\n- --trust-agents loads it without asking, for that invocation.\n\nThis is trust in agent code and server definitions, not permission for every terminal command.\nA trusted repository can still start a server that does something you did not intend, which is\nwhy the path and the person who added it matter.\n\n### Ignore files\n\nReading and searching honour .gitignore, .codebuffignore and\n.manicodeignore, including rules in nested directories. A pattern that does not\nparse is skipped on its own; the remaining rules still apply.\n\nThe three are not equivalent. A file ignored by .gitignore can still be read when\nyou ask for it explicitly, while .codebuffignore and .manicodeignore\nblock an explicit read of that path. Use the latter two for things the agent must not open even\nwhen named.\n\nIgnore files steer the agent's reading and searching tools; they are not a sandbox. A shell\ncommand can still reach a path that an ignore rule hides, so a secret has to be made\nunreadable by permissions, not by a pattern.\n\nThe config format, transport types and a working example are on\nMCP servers.\n\n## Hooks\n\nFile-change hooks are not supported in the SDK environment: the hook runner is a no-op and\nsays so. Do not build a workflow that depends on a hook firing after an edit — put the check in\nthe build or test command, which the agent runs and sees the output of.\n\n## What the agent may do\n\nApprovals are a property of the client, not of AGENTS.md. An instruction file can\nask the agent not to touch a path, and a well-behaved run will respect it, but that is a\nconvention rather than a sandbox: the agent runs with your user's permissions and can read\nfiles outside the project when a command or a read points there. If something must be\nunreachable, make it unreachable at the filesystem level.\n\nFor how the agent plans, asks questions and verifies work, see\nworking with the agent."
    },
    {
      "path": "/templates/",
      "url": "https://docs.freebuff.page/templates/",
      "title": "Starter templates",
      "description": "The catalog, what each template needs, and the install limits that decide whether it downloads at all.",
      "section": "Extend",
      "headings": [
        {
          "id": "catalog",
          "text": "What is in the catalog",
          "level": 2,
          "url": "https://docs.freebuff.page/templates/#catalog"
        },
        {
          "id": "using",
          "text": "Adopting one",
          "level": 2,
          "url": "https://docs.freebuff.page/templates/#using"
        },
        {
          "id": "limits",
          "text": "Install limits",
          "level": 2,
          "url": "https://docs.freebuff.page/templates/#limits"
        },
        {
          "id": "updates",
          "text": "Templates do not update themselves",
          "level": 2,
          "url": "https://docs.freebuff.page/templates/#updates"
        }
      ],
      "text": "A starter template is a complete, designed, working project — not a scaffold with TODOs. Most\nof the time it is faster to adopt one and cut it down than to describe a design from an empty\nfolder.\n\n## What is in the catalog\n\nTemplate | What it is | Needs |\n\nsaas-landing | Marketing landing page | Nothing beyond hosting |\n\nstore | Storefront with a demo checkout | Nothing to start; a real checkout is yours to wire |\n\nportfolio | Personal portfolio | Nothing beyond hosting |\n\nstudy | Flashcards for learning | Auth, database, file storage |\n\nai-chat | Chat assistant | Auth, database, and your own model API key |\n\ncrm | Contacts and deals | Auth, database, file storage |\n\nchess | Chess, including multiplayer | Auth and database; realtime for two players |\n\nbedwars (Buffcraft) | Multiplayer game | Auth and a realtime configuration at deploy time |\n\nbedwars-lite | The same game against bots | Nothing — no server, no accounts |\n\ncrosscut | Single-player game | Nothing beyond hosting |\n\norbit | Multiplayer game on its own server | A server of its own; auth optional |\n\nThe \"needs\" column is a warning, not a shopping list. A template that expects a database will\nnot work on a static host no matter how good the code is, and a template that expects its own\nserver cannot be published through Sites.\n\n## Adopting one\n\n- Pick the closest shapeClosest beats most impressive — you are going to delete most of it.\n\n- Read the README before the codeIt says what has to be configured before the first run: auth, a database, a model key, or nothing at all.\n\n- Provision what it needsStorage and auth are per environment, and publishing quota is separate. See storage and data.\n\n- Make it yoursRename it, replace the copy, the colours, the data and the sections you do not need.\n\nA template is installed only into a workspace whose matching top-level files do not already\nexist: Desktop refuses to overwrite them. That is a guard against losing work, and it also\nmeans \"install the template again to update it\" is not a plan.\n\n## Install limits\n\nThese are the numbers that decide whether a template downloads and unpacks at all:\n\nStep | Limit |\n\nCatalog cache lifetime | 5 minutes |\n\nCatalog request timeout | 15 seconds |\n\nArchive download timeout | 60 seconds |\n\nCompressed archive | 64 MiB |\n\nUnpacked archive | 512 MiB |\n\nFile count | 20,000 |\n\nThe archive's size and checksum are verified before anything is written. A failed download, a\ncatalog that does not parse, a checksum mismatch or a conflict with existing files ends the\ninstall instead of leaving a half-copied project behind.\n\n## Templates do not update themselves\n\nPublishing a new version of a template changes what the next project starts from. It does not\nchange a project you already adopted: that code is yours now, and the update is a diff you\nwould have to read and apply by hand. Treat the template as a starting point, not as a\ndependency.\n\nPrefer asking over browsing? Describe the product in one sentence and let the agent choose:\n\"a landing page for a scheduling tool with pricing and a waitlist\" is a request that maps to a\ntemplate directly."
    },
    {
      "path": "/connection-problems/",
      "url": "https://docs.freebuff.page/connection-problems/",
      "title": "Connection problems",
      "description": "The app times out or says \"No internet\" — how to tell whether it is the app, your network or a block.",
      "section": "Troubleshooting",
      "headings": [
        {
          "id": "step-1",
          "text": "1. Check whether it is the app or the whole connection",
          "level": 2,
          "url": "https://docs.freebuff.page/connection-problems/#step-1"
        },
        {
          "id": "step-2",
          "text": "2. Try another network",
          "level": 2,
          "url": "https://docs.freebuff.page/connection-problems/#step-2"
        },
        {
          "id": "step-3",
          "text": "3. Test VPN and TUN settings separately",
          "level": 2,
          "url": "https://docs.freebuff.page/connection-problems/#step-3"
        },
        {
          "id": "step-4",
          "text": "4. Check firewall or antivirus blocks",
          "level": 2,
          "url": "https://docs.freebuff.page/connection-problems/#step-4"
        },
        {
          "id": "step-5",
          "text": "5. Check DNS only if the error points to DNS",
          "level": 2,
          "url": "https://docs.freebuff.page/connection-problems/#step-5"
        },
        {
          "id": "step-6",
          "text": "6. Several devices failing on the same home network",
          "level": 2,
          "url": "https://docs.freebuff.page/connection-problems/#step-6"
        },
        {
          "id": "what-to-report",
          "text": "What to put in a ticket",
          "level": 2,
          "url": "https://docs.freebuff.page/connection-problems/#what-to-report"
        }
      ],
      "text": "Try the steps that match your symptoms. Change one thing at a time, then retry Freebuff.\n\n## 1. Check whether it is the app or the whole connection\n\nOn the same device and network, open Freebuff Web and then try Desktop or CLI. If the\nwebsite works but the app times out or says \"No internet\", the app's connection may be\ntaking a different route. That does not necessarily mean your internet is down.\n\n## 2. Try another network\n\nSwitch to mobile data or a phone hotspot, or try another ISP. If Freebuff works there, the\nproblem may be specific to your usual network or its route. Reinstalling the app is\nunlikely to fix a network-route problem — resist it.\n\n## 3. Test VPN and TUN settings separately\n\nTemporarily disconnect any VPN, proxy or TUN app and retry. If that does not help, try\nCloudflare WARP as a separate test. WARP is allowed, but neither result guarantees a fix.\n\n## 4. Check firewall or antivirus blocks\n\nLook for a block involving the official Freebuff app or its bundled bun\nprocess. If you find one, add an exception for that app. Do not turn off your firewall or\nantivirus entirely.\n\n## 5. Check DNS only if the error points to DNS\n\nIf the message says something like \"could not resolve host\", DNS is the suspect. With\ncustom DNS, try your ISP's automatic DNS and test again. Public DNS is another test, not a\nguaranteed fix; changing DNS usually will not help when the hostname resolves but the\nconnection times out.\n\n## 6. Several devices failing on the same home network\n\nRestart the router once and test again. If every device fails identically, the problem is\nupstream of Freebuff.\n\n## What to put in a ticket\n\nWhen none of the above explains it, post in\nthe tickets channel\nwith:\n\n- which surfaces fail (Web, Desktop, CLI) and which work,\n\n- your operating system and Freebuff version,\n\n- the network type you tested (home, mobile, VPN) and the exact error text,\n\n- anything you changed between a working and a failing attempt.\n\nFull guidance is in get help."
    },
    {
      "path": "/app-wont-start/",
      "url": "https://docs.freebuff.page/app-wont-start/",
      "title": "App crashes or won't start",
      "description": "Startup messages that explain themselves, and the update or reinstall that fixes the rest.",
      "section": "Troubleshooting",
      "headings": [
        {
          "id": "desktop",
          "text": "Freebuff Desktop",
          "level": 2,
          "url": "https://docs.freebuff.page/app-wont-start/#desktop"
        },
        {
          "id": "already-open",
          "text": "\"Freebuff is already open\"",
          "level": 3,
          "url": "https://docs.freebuff.page/app-wont-start/#already-open"
        },
        {
          "id": "no-avx2",
          "text": "Windows x64 standard build still crashes",
          "level": 3,
          "url": "https://docs.freebuff.page/app-wont-start/#no-avx2"
        },
        {
          "id": "eacces",
          "text": "Linux says \"Permission denied\" or shows EACCES",
          "level": 3,
          "url": "https://docs.freebuff.page/app-wont-start/#eacces"
        },
        {
          "id": "runtime-missing",
          "text": "The runtime is missing / installation is incomplete",
          "level": 3,
          "url": "https://docs.freebuff.page/app-wont-start/#runtime-missing"
        },
        {
          "id": "cli",
          "text": "Freebuff CLI",
          "level": 2,
          "url": "https://docs.freebuff.page/app-wont-start/#cli"
        },
        {
          "id": "after",
          "text": "After it starts",
          "level": 2,
          "url": "https://docs.freebuff.page/app-wont-start/#after"
        }
      ],
      "text": "Try the steps that match your setup or the error you see.\n\n## Freebuff Desktop\n\n- Update or reinstallGet the latest installer for your platform from the download page. You usually do not need to uninstall the old version first.\n\n- Read the startup messageThe message names the cause more often than not — the cases are below.\n\n- Still crashing?Open a ticket with your operating system, Freebuff version and the exact error message.\n\n### \"Freebuff is already open\"\n\nSwitch to the existing window. If there is not one, check for a leftover bun\nprocess in Task Manager (Windows) or Activity Monitor (macOS), then reopen Freebuff.\nDo not stop a process if you have an active Freebuff session — you would\nkill the work in progress.\n\n### Windows x64 standard build still crashes\n\nTry the Older PC / no AVX2 build from the download page. That option exists\nfor machines without AVX2 support; it is not a general fix for every crash.\n\n### Linux says \"Permission denied\" or shows EACCES\n\nTry running or installing Freebuff from your home folder. The current location may not\nallow applications to run — a mounted volume or a system directory is the usual culprit.\n\n### The runtime is missing / installation is incomplete\n\nReinstall the latest version. That message means the bundled runtime did not land\ncorrectly, and repairing the install is the whole fix.\n\n## Freebuff CLI\n\n- Check the versionfreebuff -v\n\n- UpdateThe CLI usually updates when you run freebuff. To update manually: npm install -g freebuff@latest\n\n- Reinstall if it persistsnpm uninstall -g freebuff then npm install -g freebuff@latest\n\n- Still stuck?Open a ticket with your operating system, CLI version, and the command and error you saw.\n\n## After it starts\n\nYour sessions are stored on the device, so a crash costs you at most the current turn.\nSession logs explains where the store is and how to recover\nthe thread, and get help lists what a ticket needs."
    },
    {
      "path": "/session-logs/",
      "url": "https://docs.freebuff.page/session-logs/",
      "title": "Session logs",
      "description": "Where each surface keeps its history — Local stores on your device, Cloud runs on the server — and how to read them without breaking anything.",
      "section": "Troubleshooting",
      "headings": [
        {
          "id": "paths",
          "text": "Where the files are",
          "level": 2,
          "url": "https://docs.freebuff.page/session-logs/#paths"
        },
        {
          "id": "cloud",
          "text": "What Cloud keeps",
          "level": 2,
          "url": "https://docs.freebuff.page/session-logs/#cloud"
        },
        {
          "id": "read",
          "text": "Reading them",
          "level": 2,
          "url": "https://docs.freebuff.page/session-logs/#read"
        },
        {
          "id": "helper",
          "text": "Recovering an interrupted session",
          "level": 2,
          "url": "https://docs.freebuff.page/session-logs/#helper"
        },
        {
          "id": "safety",
          "text": "Safety rules",
          "level": 2,
          "url": "https://docs.freebuff.page/session-logs/#safety"
        }
      ],
      "text": "History is kept differently depending on where the work ran, and that difference matters\nbefore you promise anyone a copy. Local Desktop and CLI sessions are stored on your device.\nA Cloud chat is not: its work and the transcript of it are recorded server-side, so a local\nfile is not the only copy of a Cloud run. Content sent to a model leaves the device as well —\nthat is how a hosted model works, as privacy and your data explains.\n\n## Where the files are\n\nSurface | Path |\n\nCLI |\n~/.config/manicode/projects/{PROJECT_FOLDERNAME}/chats/{DATE-TIME}/log.jsonl |\n\nDesktop, current builds |\n<project>/.freebuff/desktop-v2.db |\n\nDesktop, older layout |\n~/.config/freebuff-desktop/projects/<project-slug>/desktop-v2.db — kept by installs that predate the in-project store |\n\nApp logs (Windows) |\n%APPDATA%\\Freebuff\\logs\\orchestrator-stderr.log |\n\nApp logs (macOS) |\n~/Library/Logs/Freebuff/ |\n\nApp logs (Linux) |\n~/.config/Freebuff/logs/ |\n\nOn Windows, ~ is %USERPROFILE%. A CLI configured with\nFREEBUFF_CONFIG_DIR keeps its data there instead of\n~/.config/manicode.\n\n## What Cloud keeps\n\nA Cloud chat runs on a copy of the project held with Freebuff, and the run's events and\ntranscript are written server-side, including archived transcripts of earlier runs. Three\nconsequences follow:\n\n- Do not describe a local transcript as the only copy of a Cloud session.\n\n- Deleting a file on your machine does not delete the server-side record; a deletion request follows privacy and your data.\n\n- Whether support can retrieve a particular Cloud transcript depends on the support path and its retention, so ask instead of promising either way.\n\n## Reading them\n\nThe CLI log is JSON Lines — one JSON object per turn, greppable with\njq. The Desktop store is SQLite, so open it read-only and never while the app\nis running: sqlite3 file:desktop-v2.db?mode=ro.\n\nIn the Desktop database, messages do not have a text column. Content is a JSON array in\nparts_json, one entry per part, with kind values such as\ntext, compaction, reasoning, tool,\nnotice, changes and agent. Thread state lives in\nthreads, including status, model,\ntitle, updated_at and sidebar_archived_at.\n\n## Recovering an interrupted session\n\nA small read-only helper does the boring part: it finds the stores, searches them and\nprints a resume brief. Python 3.8+, standard library only, works on Windows, Linux and\nmacOS.\n\nDownload fbsess.py\nDownload SKILL.md\n\nCommand | What it does |\n\ndoctor | Detected paths, store sizes, thread counts, schema check, CLI folders, log path. |\n\nlist | Desktop stores, newest first, plus the newest CLI chats. |\n\nfind <keyword> | Keyword search, using the store's own full-text index when present. |\n\nbrief [thread_id] | Resume brief: state, last compaction summary, last user message, last reply, changed files, unanswered questions. |\n\ndump [thread_id] --out <path> | Full readable text of one thread, without reasoning or UI noise. |\n\nanswers [thread_id] | Every question the agent asked, with the answer you gave. |\n\ncli [chat] | Lists CLI chats, or prints one. |\n\nScope flags: --project SUBSTR (repeatable), --exclude SUBSTR\n(defaults to the private workspace_personal; pass --exclude \"\" to\ninclude everything) and --limit N.\n\n```\npython scripts/fbsess.py doctor\npython scripts/fbsess.py find \"migration\" --project workspace-1a2b3c4d\npython scripts/fbsess.py brief 98203c25-f1f1-4a40-9aad-046e3a8b250f\npython scripts/fbsess.py dump --out ../dumps/2026-10-24.md --limit 400\n```\n\n## Safety rules\n\n- Read-only. The helper opens connections with mode=ro and PRAGMA query_only; if the app holds a lock it reads a temporary copy of the database plus its -wal and -shm files.\n\n- Never edit, move or delete the store or its sidecar files, and never write to it while Freebuff is running.\n\n- Keep dumps out of version control. A transcript can contain private content, paths and tokens.\n\n- Scope your searches. A broad find reads other projects' history; use --project when the question is about one workspace.\n\nDo not paste a whole transcript into a public channel. Quote the lines that answer the\nquestion, and redact anything that looks like a key or a password."
    },
    {
      "path": "/support/",
      "url": "https://docs.freebuff.page/support/",
      "title": "Get help",
      "description": "Where to ask, who handles what, and the details that turn a report into a fix.",
      "section": "Get help",
      "headings": [
        {
          "id": "before",
          "text": "Before you open a ticket",
          "level": 2,
          "url": "https://docs.freebuff.page/support/#before"
        },
        {
          "id": "who",
          "text": "Who handles what",
          "level": 2,
          "url": "https://docs.freebuff.page/support/#who"
        },
        {
          "id": "include",
          "text": "What the team will ask for anyway",
          "level": 2,
          "url": "https://docs.freebuff.page/support/#include"
        },
        {
          "id": "project-link",
          "text": "Send the link, not the name",
          "level": 2,
          "url": "https://docs.freebuff.page/support/#project-link"
        },
        {
          "id": "tickets",
          "text": "Ticket template",
          "level": 2,
          "url": "https://docs.freebuff.page/support/#tickets"
        },
        {
          "id": "server",
          "text": "Discord server problems",
          "level": 2,
          "url": "https://docs.freebuff.page/support/#server"
        },
        {
          "id": "pages",
          "text": "Fix it yourself first",
          "level": 2,
          "url": "https://docs.freebuff.page/support/#pages"
        }
      ],
      "text": "The Discord server is where support actually happens — bigger than any ticket queue, and\nfaster than waiting for a page to be updated. Join once and you can search years of\nanswered questions:\ndiscord.com/invite/freebuff.\n\n## Before you open a ticket\n\n- Search firstMost problems have been answered already in the FAQ and search channel.\n\n- Try the self-serve checkThe pre-ticket channel walks through the fixes that do not need a human.\n\n- Then open a ticketIn the tickets channel.\n\n## Who handles what\n\nArea | Who |\n\nAdmin, email and subscriptions, refunds and triage, Cloud, website issues | Open a ticket in the tickets channel — one of the team picks it up |\n\nCloud and website issues | A cloud/website engineer |\n\nDesktop and CLI, iOS and Android apps | An apps engineer |\n\nOutages and serious incidents | @Vector |\n\nNew features and critical issues | @Sam |\n\nAnything else | Never ping @James or any other @Founder directly |\n\nAccount, verification and subscription questions have their own channel:\nthe account support channel.\n\nDo not send your email address in chat. Use the account channel, and\nshare only what is needed to find your account. A public channel is public forever.\n\n## What the team will ask for anyway\n\nInclude these in the first message and you skip a round trip:\n\n- Your GitHub username when the issue is about your account or a repository.\n\n- Your project link for anything web or Cloud — see below.\n\n- Your app version, and your operating system.\n\n- The exact error text, not a paraphrase. A screenshot is fine.\n\n## Send the link, not the name\n\nThere is no Share button, so copy the address yourself:\n\n- Open the project in the browserFreebuff Web or Cloud.\n\n- Copy the address barIt looks like https://freebuff.com/web/project/cold-toes-laugh or https://cold-toes-laugh.freebuff.dev.\n\n- Paste it into your postIf copying is awkward, the three-word slug at the end is enough — it is also in project settings.\n\nA sidebar name like \"My Todo App\" cannot be looked up. And do not send the published site\naddress (….freebuff.app) — that one points at the deployed site, not at the\nproject.\n\n## Ticket template\n\n```\nWhat I expected:\nWhat happened instead:\nExact error:\nSurface: Desktop / Cloud / CLI / mobile / website\nApp version + OS:\nProject link (web/Cloud):\nGitHub username (account issues):\nWhat I already tried:\n```\n\nRead the ticket guidelines before posting:\nthe ticket guidelines post.\n\n## Discord server problems\n\nPing the moderators\n(via the tickets channel)\nwhen someone breaks a rule, and the team for anything about roles, permissions or channels.\n\n## Fix it yourself first\n\n- Connection problems — timeouts, \"No internet\", VPN and DNS.\n\n- App crashes or won't start — update, reinstall, platform quirks.\n\n- Session logs — recover an interrupted session without asking support.\n\n- Limits and invocations — when a site suddenly stops serving.\n\n- Country verification — the verification loop and its errors."
    },
    {
      "path": "/faq/",
      "url": "https://docs.freebuff.page/faq/",
      "title": "FAQ",
      "description": "Short answers to the questions that come up most often, each pointing at the page with the detail.",
      "section": "Get help",
      "headings": [
        {
          "id": "account",
          "text": "Account and billing",
          "level": 2,
          "url": "https://docs.freebuff.page/faq/#account"
        },
        {
          "id": "balance-low",
          "text": "My balance looks lower than it was",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#balance-low"
        },
        {
          "id": "why-fewer-hours",
          "text": "Why do I get fewer hours than someone in another country?",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#why-fewer-hours"
        },
        {
          "id": "vpn",
          "text": "Does a VPN reduce my allowance?",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#vpn"
        },
        {
          "id": "freebucks-to-hours",
          "text": "Can I convert freebucks to hours?",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#freebucks-to-hours"
        },
        {
          "id": "cancel",
          "text": "What happens when I cancel?",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#cancel"
        },
        {
          "id": "invite-lost",
          "text": "A collaborator never got the invitation",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#invite-lost"
        },
        {
          "id": "cloud",
          "text": "Cloud and projects",
          "level": 2,
          "url": "https://docs.freebuff.page/faq/#cloud"
        },
        {
          "id": "changes-missing",
          "text": "I worked in Cloud and the changes are not on my computer",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#changes-missing"
        },
        {
          "id": "two-chats",
          "text": "Two Cloud chats see different files",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#two-chats"
        },
        {
          "id": "handoff-too-large",
          "text": "\"A message is too large to move to Cloud\"",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#handoff-too-large"
        },
        {
          "id": "shared",
          "text": "Do collaborators spend my balance?",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#shared"
        },
        {
          "id": "sites",
          "text": "Sites",
          "level": 2,
          "url": "https://docs.freebuff.page/faq/#sites"
        },
        {
          "id": "limits",
          "text": "Why did my site stop working today?",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#limits"
        },
        {
          "id": "invocation",
          "text": "What counts as an invocation?",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#invocation"
        },
        {
          "id": "too-big",
          "text": "A file is too large to deploy",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#too-big"
        },
        {
          "id": "no-server",
          "text": "Can Sites host a Node or Python server?",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#no-server"
        },
        {
          "id": "domain-wait",
          "text": "How long does a custom domain take?",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#domain-wait"
        },
        {
          "id": "legacy",
          "text": "Where did my old Freebuff Web project go?",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#legacy"
        },
        {
          "id": "legacy-data",
          "text": "The Migrate and Download backup buttons are gone",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#legacy-data"
        },
        {
          "id": "repo-backup",
          "text": "Is my GitHub repository a backup?",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#repo-backup"
        },
        {
          "id": "leaving",
          "text": "Can I take the project to my own Cloudflare account?",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#leaving"
        },
        {
          "id": "agent",
          "text": "The agent and tools",
          "level": 2,
          "url": "https://docs.freebuff.page/faq/#agent"
        },
        {
          "id": "mission",
          "text": "What is mission mode?",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#mission"
        },
        {
          "id": "mcp",
          "text": "How do I add a tool like Blender or Godot?",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#mcp"
        },
        {
          "id": "stops",
          "text": "Why does it stop and ask me things?",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#stops"
        },
        {
          "id": "changed-extra",
          "text": "It changed files I did not mention",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#changed-extra"
        },
        {
          "id": "trouble",
          "text": "When it breaks",
          "level": 2,
          "url": "https://docs.freebuff.page/faq/#trouble"
        },
        {
          "id": "no-internet",
          "text": "The app says \"No internet\" but my browser works",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#no-internet"
        },
        {
          "id": "already-open",
          "text": "It says Freebuff is already open",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#already-open"
        },
        {
          "id": "lost-session",
          "text": "I lost a session after a crash",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#lost-session"
        },
        {
          "id": "ticket",
          "text": "How do I get a human?",
          "level": 3,
          "url": "https://docs.freebuff.page/faq/#ticket"
        }
      ],
      "text": "## Account and billing\n\n### My balance looks lower than it was\n\nBalances are shown in hours now: one hour equals five freebucks, so 250 freebucks reads as\n50 hours. Nothing was deducted — only the label changed. Full rules in\nplans and allowances.\n\n### Why do I get fewer hours than someone in another country?\n\nFree allowances follow regional ad revenue, so the daily pool differs by country and from\nlimited access. The tables are on plans and allowances.\n\n### Does a VPN reduce my allowance?\n\nYes — a VPN, proxy or iCloud Private Relay puts you on limited access with a smaller daily\npool. Turn it off and retry; if your country is wrong, fix it in\ncountry verification.\n\n### Can I convert freebucks to hours?\n\nThey are the same thing at a fixed rate: 1 hour = 5 freebucks. What you cannot do is move\nunused daily hours into your wallet — the daily pool resets at midnight in your account's\ntimezone.\n\n### What happens when I cancel?\n\nA monthly plan ends as soon as you cancel; an annual plan is scheduled to end at the close\nof the paid year. Neither carries an automatic refund — a refund is a separate decision, not\nsomething a cancellation grants. The details are in\naccount and settings.\n\n### A collaborator never got the invitation\n\nCheck the Promotions tab in Gmail and the spam folder before resending. Details and the\nrest of the flow are in collaborators.\n\n## Cloud and projects\n\n### I worked in Cloud and the changes are not on my computer\n\nCloud works on a copy, and nothing is written back automatically. Push from Cloud and pull\nlocally, or read local to Cloud for both routes.\n\n### Two Cloud chats see different files\n\nEach Cloud chat has its own copy of the project. Commit and push when a result should be\nshared.\n\n### \"A message is too large to move to Cloud\"\n\nUse Retry cloud handoff from the chat's sidebar menu; if it fails again, choose\nKeep this chat local or start a fresh Cloud chat with the important context. The\nsteps are in local to Cloud.\n\n### Do collaborators spend my balance?\n\nNo. Each user runs their own session on their own balance; only the project access is\nshared. See collaborators.\n\n## Sites\n\n### Why did my site stop working today?\n\nMost likely a quota: invocations, database writes, CPU seconds or storage. The exact\nnumbers and the ways to reduce them are in\nlimits and invocations.\n\n### What counts as an invocation?\n\nEvery time your worker code runs — including each API call and each asset request that\nreaches the Worker. Batching and inlining assets is usually the cheapest fix.\n\n### A file is too large to deploy\n\nA single static asset must be under 9,512,842 bytes, and a deployment allows up to 1,000\nassets. Compress the file or move it to object storage.\n\n### Can Sites host a Node or Python server?\n\nNo. Sites serves Workers plus static assets. Supported SSR frameworks work through their\nadapter; arbitrary servers, containers and native modules do not.\n\n### How long does a custom domain take?\n\nUp to 24–48 hours for DNS to propagate. During that window a hostname may work on some\nnetworks and not others. See custom domains.\n\n### Where did my old Freebuff Web project go?\n\nIt is still there. Open Projects → Legacy, find it and select\nCopy: saved files and uncommitted changes come across, while chats, Git\nhistory, dependencies, ignored files such as .env and the database do not. Some\nlegacy projects are not available to copy. See\nlegacy projects.\n\n### The Migrate and Download backup buttons are gone\n\nBoth were removed from the legacy workspace. If you need legacy records, contact support\nwith your project link and say whether you need development or production data, and keep\nthe original project until that is answered. See\ntaking your project elsewhere.\n\n### Is my GitHub repository a backup?\n\nOnly after you check it. A push that never finished leaves an empty or partial repo, so open\nit on GitHub and look before relying on it. Keep secrets and environment variables out of a\npublic repository.\n\n### Can I take the project to my own Cloudflare account?\n\nYes, and it is the recommended fix when you outgrow the shared quotas. The database exports\nthrough an authenticated endpoint and imports with Wrangler. See\ntaking your project elsewhere.\n\n## The agent and tools\n\n### What is mission mode?\n\n/mission gives the agent a goal and lets a judge model decide whether to keep\nit working or stop. See mission mode.\n\n### How do I add a tool like Blender or Godot?\n\nAdd an MCP server. Desktop has presets and an approval step; the CLI reads\n~/.agents/mcp.json. See MCP servers.\n\n### Why does it stop and ask me things?\n\nBecause a wrong assumption costs more than a question. A turn that pauses for a decision or\na credential is working as intended — answer it and the loop resumes.\n\n### It changed files I did not mention\n\nUsually scope creep from a broad brief. Name the boundary in the follow-up instead of\nstarting over — see working with the agent.\n\n## When it breaks\n\n### The app says \"No internet\" but my browser works\n\nThat usually means the app's route differs from your browser's, not that you are offline.\nWork through connection problems one step at a time.\n\n### It says Freebuff is already open\n\nSwitch to the existing window, or look for a leftover bun process and reopen.\nDo not kill it while a session is running — see\napp crashes or won't start.\n\n### I lost a session after a crash\n\nSessions are stored on your device. Session logs has the paths\nand a read-only helper that prints a resume brief.\n\n### How do I get a human?\n\nThe Discord server, in the tickets channel. Get help lists what to\ninclude, including the project link the team will ask for anyway."
    },
    {
      "path": "/privacy/",
      "url": "https://docs.freebuff.page/privacy/",
      "title": "Privacy and your data",
      "description": "What the service may collect, how far the agent can reach on your machine, and where to ask for access or deletion.",
      "section": "Trust",
      "headings": [
        {
          "id": "collected",
          "text": "What the service may collect",
          "level": 2,
          "url": "https://docs.freebuff.page/privacy/#collected"
        },
        {
          "id": "reach",
          "text": "How far the agent can reach",
          "level": 2,
          "url": "https://docs.freebuff.page/privacy/#reach"
        },
        {
          "id": "providers",
          "text": "Model providers",
          "level": 2,
          "url": "https://docs.freebuff.page/privacy/#providers"
        },
        {
          "id": "cloud",
          "text": "Cloud is a copy, not your disk",
          "level": 2,
          "url": "https://docs.freebuff.page/privacy/#cloud"
        },
        {
          "id": "retention",
          "text": "How long data is kept",
          "level": 2,
          "url": "https://docs.freebuff.page/privacy/#retention"
        },
        {
          "id": "requests",
          "text": "Access, correction and deletion",
          "level": 2,
          "url": "https://docs.freebuff.page/privacy/#requests"
        },
        {
          "id": "honest",
          "text": "What this page does not promise",
          "level": 2,
          "url": "https://docs.freebuff.page/privacy/#honest"
        }
      ],
      "text": "Two separate questions get mixed up here. One is what Freebuff collects as a service. The\nother is what the agent can reach on your machine — and on Desktop and the CLI those are not\nthe same thing at all.\n\n## What the service may collect\n\nThe privacy policy describes collection of prompts and messages, code and files you send, data\nfrom the repository being worked on, diagnostics, and information about how the product is\nused. In practical terms: anything you put in a chat, and anything the agent reads while\nworking on your instruction, can leave your machine.\n\nThat is not a hidden behaviour — it is how a hosted model works. It does mean \"I only asked a\nquestion\" is not a privacy boundary. A question about a file includes the file.\n\n## How far the agent can reach\n\nOn Desktop and in the CLI the agent runs with your user's permissions. It is not confined to\nthe project folder: a read or a command that points outside it will work. Never assume the\nproject directory is a fence.\n\nWhat follows from that:\n\n- Secrets in the project — an .env the agent can read is a secret the model may see. Keep keys out of the working tree, or out of reach.\n\n- Secrets outside the project — an SSH key, a cloud CLI credential or a password manager export is readable if a command touches it. Do not paste credentials into a chat to \"let the agent test something\".\n\n- If something leaked — rotate the secret first, then ask. Removing a message does not un-send it.\n\n## Model providers\n\nContent sent to a model is processed by the systems that serve that model, under the terms of\nthe product and provider in use. Which provider is behind a model is a reason to care which\nmodel you pick, and it is why models lists identifiers rather than\nmarketing names.\n\n## Cloud is a copy, not your disk\n\nA Cloud chat works on a copy stored with Freebuff (see\nCloud workspaces). That copy is the one being processed; your local\nfolder is not touched until you pull the result. The reverse is also true: a file you never\ngave to Cloud is not part of that copy, so the agent there cannot read it.\n\n## How long data is kept\n\nSaved projects and chat history normally stay attached to the account until an applicable\ndeletion request is carried out, with the exceptions the policy names. There is no single\noverall retention number, and this page will not invent one.\n\nDeletion is not a shredder for every copy. After an account or data is deleted, some records can\nremain in backups, in de-identified or aggregated form, or in data sets that were already\npermitted for training before the request. That is the honest version of \"deleted\": removed\nfrom the product, not necessarily from every archive on the same day.\n\n## Access, correction and deletion\n\nRequests about personal data — a copy of it, a correction, a deletion — go to\nsupport@freebuff.com, as the policy states. Say what you want rather than\ndescribing the whole history: the request is easier to act on when it names the account and the\ndata.\n\nDeleting the account is a separate, self-service action, and it is irreversible — the exact\nsteps and what they remove are on account and settings.\n\n## What this page does not promise\n\nIt does not quote retention periods per data category, encryption details, or storage\nlocations: those belong to the privacy policy and the terms, which are the authoritative\ndocuments and are updated independently of this wiki. Where a number is not published, this\npage states the behaviour and leaves the number out rather than inventing one.\n\nThe policy itself is at freebuff.com/privacy-policy;\nthe terms are linked from it. If the two ever disagree with this page, they win."
    },
    {
      "path": "/design-system/",
      "url": "https://docs.freebuff.page/design-system/",
      "title": "Design system",
      "description": "Less, but considered — soft shapes, clear hierarchy, and a sage green signature.",
      "section": "Design",
      "headings": [
        {
          "id": "tokens",
          "text": "Token playground",
          "level": 2,
          "url": "https://docs.freebuff.page/design-system/#tokens"
        },
        {
          "id": "composer",
          "text": "Composer",
          "level": 2,
          "url": "https://docs.freebuff.page/design-system/#composer"
        },
        {
          "id": "buttons",
          "text": "Buttons",
          "level": 2,
          "url": "https://docs.freebuff.page/design-system/#buttons"
        },
        {
          "id": "fields",
          "text": "Fields",
          "level": 2,
          "url": "https://docs.freebuff.page/design-system/#fields"
        },
        {
          "id": "sliders",
          "text": "Sliders",
          "level": 2,
          "url": "https://docs.freebuff.page/design-system/#sliders"
        },
        {
          "id": "dashboard",
          "text": "Dashboard",
          "level": 2,
          "url": "https://docs.freebuff.page/design-system/#dashboard"
        },
        {
          "id": "accent",
          "text": "Accent",
          "level": 2,
          "url": "https://docs.freebuff.page/design-system/#accent"
        },
        {
          "id": "side-by-side",
          "text": "Side by side",
          "level": 2,
          "url": "https://docs.freebuff.page/design-system/#side-by-side"
        },
        {
          "id": "surfaces",
          "text": "Surfaces in use",
          "level": 2,
          "url": "https://docs.freebuff.page/design-system/#surfaces"
        },
        {
          "id": "primary-gradient",
          "text": "Primary surface",
          "level": 2,
          "url": "https://docs.freebuff.page/design-system/#primary-gradient"
        },
        {
          "id": "gradient-panel",
          "text": "Publish to production",
          "level": 3,
          "url": "https://docs.freebuff.page/design-system/#gradient-panel"
        },
        {
          "id": "thinking",
          "text": "Thinking",
          "level": 2,
          "url": "https://docs.freebuff.page/design-system/#thinking"
        },
        {
          "id": "icons",
          "text": "Icons",
          "level": 2,
          "url": "https://docs.freebuff.page/design-system/#icons"
        },
        {
          "id": "overlays",
          "text": "Overlays",
          "level": 2,
          "url": "https://docs.freebuff.page/design-system/#overlays"
        },
        {
          "id": "chat",
          "text": "Chat",
          "level": 2,
          "url": "https://docs.freebuff.page/design-system/#chat"
        },
        {
          "id": "type",
          "text": "Surfaces & type",
          "level": 2,
          "url": "https://docs.freebuff.page/design-system/#type"
        }
      ],
      "text": "The interface is built from a small set of tokens and a few components, then used everywhere without local exceptions. This page is the reference: every specimen below is the real thing, rendered from the same stylesheet as the rest of the site.\n\nThe visual language is Cipher's work — cipherdecrypted on GitHub. Leave it be when you copy the tokens.\n\nTheme\n\nLight mode\nDark mode\n\nSwitches the whole page, like the toggle in the header.\n\n## Token playground\n\nFive tokens carry almost all of the look. Change them here and watch the card, the field and the buttons follow — nothing on this page is hard-coded to a colour.\n\nLive tokens\n\napplies to the preview only\n\n--accent\n\n#b5cea5\n\n--bg-elevated\n\n#f7f8f5\n\n--text\n\n#232b26\n\n--border\n\n#d8ded8\n\n--radius\n\n14px\n\nReset tokens\n\n#### Deploy preview\n\nSoft shapes, one green action, and a border that only suggests the edge.\n\nDeploy\nPublish\nCancel\n\nRadius 10px controls · 14px cards · 18–22px panels · 999px pills\n\nBorders 1px, --border on rest, --border-strong on hover\n\nShadow --shadow-sm for resting cards, --shadow-lg only for floating layers\n\n## Composer\n\nA clear place to start. Quiet tools, an unobtrusive model picker, and one green action. The composer uses the elevated surface in both themes.\n\nDefault\n\nempty, focused on load\n\nBig Pickle\n\nProject · wiki\n\nAttachments, model and effort live on the left.Enter to send · Shift+Enter for a new line\n\n## Buttons\n\nGreen for the primary action, a neutral fill for other actions, and red for danger. Cancel is transparent and last. The neutral fill reverses in light mode, which is why it reads as a button on both surfaces.\n\nActions\n\ndefault size · 36px\n\nDeploy\nPublish\nDelete\nCancel\nDelete\n\nDeploy\nDeploy\nOpen logs\n\nDisabled is always the neutral fill with faint text — never a washed-out green, so a disabled primary never looks clickable.\n\nPrimary --accent + --accent-ink, hover --accent-hover\n\nNeutral --neutral-fill → reverses between themes\n\nDanger red fill, one per view at most\n\nGhost transparent, text-muted, always the last action\n\n## Fields\n\nQuiet fields with a subtle boundary. Light mode uses the same white surface as the composer, so a form and a prompt read as one family. Focus is a soft green ring, not a hard outline.\n\nProject name\n\nRegion\n\nEurope (Frankfurt)\nUnited States (Virginia)\nAsia Pacific (Singapore)\n\nWhere the deployed site is served from.\n\nBuild command\nnpm run build\n\nOptions\nRun checks before deploy\n\nPublish to production\n\nPreview URL\nEvery push gets its own address.\n\nCustom domain\nRequires a verified DNS record.\n\nSlug\n\nUse lowercase letters, numbers and dashes only.\n\n## Sliders\n\nSliders are for effort, not for precision. The filled part is the accent, the track is the inset surface, and the value is always printed next to the label.\n\nEffort\n\n1–5\n\nEffort3 · balanced\n\n1 quick2345 deep\n\nContext budget60%\n\nThe rounded value and the summary word change together; the slider never shows a number the agent will not use.\n\n## Dashboard\n\nNumbers first, chrome second. Tabs sit on an inset surface, cards are white with a one-pixel border, and only the peak bar is allowed a saturated fill.\n\nProject overview\n\nOverview\nUsage\nLogs\n\nInvocations\n\n8,412\n\n+12% this week\n\np95 latency\n\n214 ms\n\n−18 ms\n\nErrors\n\n3\n\n2 need attention\n\nDeployment | Branch | Status | When |\n\ndpl_8f3a21 | main | Published | 2 minutes ago |\n\ndpl_8f39c4 | main | Preview | 1 hour ago |\n\n## Accent\n\nOne green, used sparingly. It marks the primary action, the active tab, the focused field and the one number that matters. Everything else is neutral.\n\nSignature\n\ncurrent theme\n\naccent-soft\n\n#2d3529\n\naccent-line\n\n#4b5a42\n\naccent\n\n#b5cea5\n\naccent-hover\n\n#c5dbb7\n\naccent-text\n\n#4e653f\n\n50100200300400500600700800900\n\nText on the accent is always --accent-ink: a dark green ink in both themes, so the sage action stays readable.\n\n## Side by side\n\nThe same components in both themes. The page follows your system preference until you choose a theme. Both themes keep the same sage action, with charcoal or pale olive surfaces.\n\nLight\n\n#### Deploy preview\n\nPale olive surfaces, soft borders, one sage action.\n\nDeploy\nPublish\nCancel\n\nDark\n\n#### Deploy preview\n\nCharcoal surfaces, quiet borders, sage accents.\n\nDeploy\nPublish\nCancel\n\n## Surfaces in use\n\nFour surfaces, used in a fixed order. Anything that floats is elevated and shadowed; anything that recedes is inset and borderless.\n\n--bg\n\nPage background. Nothing sits directly on it except text.\n\n--bg-subtle\n\nGrouped sections, callouts, the sidebar of a panel.\n\n--bg-inset\n\nRecessed controls: tab tracks, disabled fills, count badges.\n\n--bg-elevated\n\nCards, fields, composer, modals — anything clickable or floating.\n\n--border\n\nThe resting edge. One pixel, no shadow needed.\n\n--border-strong\n\nHover and checked states, and the edge of a checked control.\n\n## Primary surface\n\nA muted sage surface marks the moment before something goes live. The same accent and ink tokens keep the action readable in both themes.\n\n### Publish to production\n\nYour site will answer on its own domain. Preview stays online, and you can unpublish without losing data.\n\nPublish\nNot now\n\nThe primary action keeps its sage fill and dark ink. Supporting actions stay quiet.\n\n## Thinking\n\nReasoning is folded by default and opens in place. While the agent is working, the block shows three shimmering lines instead of a spinner, so the layout never jumps.\n\nThought for 4s\nkept in the log\n\nThe build script needs a navigation entry for the new page, otherwise the generator stops with “page is not in the nav”.\n\nI will add the group first, then write the content, then build once.\n\n## Icons\n\nOne set, drawn on a 24px grid with a 1.7px stroke and round joins, so an icon carries the same weight as the text next to it. They inherit currentColor: an icon inside a muted row is muted without a second rule, and the active row turns its icon green with the label. The symbols below are the ones the header, sidebar, pager and buttons already draw from — nothing is drawn twice.\n\n- menu\n\n- search\n\n- sun\n\n- moon\n\n- compass\n\n- monitor\n\n- terminal\n\n- cloud\n\n- smartphone\n\n- credit-card\n\n- globe\n\n- database\n\n- git-branch\n\n- blocks\n\n- server\n\n- wrench\n\n- life-buoy\n\n- shield\n\n- palette\n\n- book-open\n\n- users\n\n- key\n\n- sparkles\n\n- file-text\n\n- folder\n\n- link\n\n- check\n\n- alert\n\n- info\n\n- copy\n\n- download\n\n- external-link\n\n- plus\n\n- more\n\n- arrow-right\n\n- arrow-left\n\n- chevron-right\n\n- chevron-down\n\n- discord\n\n- clock\n\n- refresh\n\n- x\n\n- play\n\n- box\n\nSize 18px in text · 15px in buttons and headers · 13–14px in the sidebar and pager\n\nStroke 1.7px on 18px, 1.8px on the 13px sidebar marks · fill: none, round caps\n\nColour currentColor only — an icon never has a fill of its own\n\nMarkup <svg class=\"icon\"><use href=\"#i-search\"/></svg>, from one sprite in the shell\n\nIcons are never the only label. Every icon-only control keeps an aria-label, and every icon that repeats a visible word is hidden from assistive technology with aria-hidden, so a screen reader hears “Search the wiki”, not “search icon Search the wiki”.\n\n## Overlays\n\nOne floating layer at a time. Modals confirm something destructive, popovers choose a value, tooltips explain an icon, and toasts report what already happened.\n\nModal\n\nDelete this project?\n\nThe site, its database and its files are removed. This cannot be undone.\n\nCancel\nDelete\n\nPopover\n\nBig Pickle ⌘1\n\nSmall Pickle ⌘2\n\nManage models…\n\nTooltip\n\nCopy the project link\n\nToast\n\nDeployment finished in 42s\n\n## Chat\n\nConversation is left-aligned prose for the agent and a soft green bubble for you. Tool calls collapse into a single monospace row above the answer, and code keeps the inset surface.\n\nMake the hero green and keep the rest neutral.\n\nF Freebuff\n\nedited src/static/styles/main.css\n\n--accent: #b5cea5;\n--accent-soft: #2d3529;\n\nDone — the accent is now the quiet green, and every component that used the old token followed it. The link and focus colours adapt to the current theme.\n\n## Surfaces & type\n\nOne family, six sizes, and a mono face for anything that is literal: paths, commands, tokens. Headings tighten, body stays at 16px, and nothing is smaller than 11px.\n\ndisplay\nLess, but considered\n40 / 44 · −0.03em\n\nh1\nDesign system\n30 / 34 · −0.032em\n\nh2\nSurfaces in use\n22 / 29 · −0.02em\n\nbody\nSoft shapes, clear hierarchy, quiet tools.\n16 / 26 · 0\n\nsmall\nUsed for metadata, captions and table cells.\n13.5 / 20 · 0\n\nmono\n--accent: #b5cea5;\n12.5 / 20 · DM Mono\n\nCallouts carry the same restraint: colour only in the marker and the border, never in the text.\n\nInfo uses the accent soft fill and accent border. It is for a decision the reader has to make, not for praise.\n\nWarning uses amber for irreversible or expensive actions. It is never combined with the green accent on the same element.\n\n- Soft shapes before sharp ones: 10–12px on controls, 18–20px on panels, pills only for filters and status.\n\n- Hierarchy comes from weight and space, not from more colour. One saturated element per view.\n\n- Borders carry structure; shadows are reserved for layers that actually float.\n\n- Green means “do the thing”. Red means “this removes something”. Nothing else is coloured."
    }
  ]
}
