Skip to main content
An AGO app is a small web page or API that you build by asking Claude, Codex or another coding agent. AGO hosts it, deploys every change and handles sign-in: only your team, your AGO agents and the servers you give a key to can reach it.
AGO Apps is enabled per workspace: contact AGO to turn it on. Then every admin can create apps, and a super admin can restrict an app to the people they choose.

What you can build

  • A page for your team, at https://<app>.<workspace>.agoapps.com: a form, a dashboard that combines several APIs, a calculator. People open it with their AGO account.
  • An API for your agents: an agent tool that looks up a price, formats a document or calls a service your agents need.
  • An API for your own programs: your back office, a script or an integration platform calls the app with a key.
  • A task in a tool that has no API: the app signs in to a back-office in a real browser, does the work and reports the result to your agent. See Browser automation.
An app can keep data in its own databases and call other services with keys kept as secrets. For public pages that anyone can open, such as a help center, create a site instead.

Who has access

Access to AGO Apps lets an admin build apps: they see Studio › Apps, Claude gets the app tools through their MCP connection, and they can create apps. Every admin has it by default; a super admin or a user manager can turn it off for a person in Configuration › Users, column AGO Apps. Super admins always have it. By default an app is open to your team: every admin and every app user can open it, every admin with access to AGO Apps can manage it (code, secrets, databases), and your AGO agents, API sources and workflows can call its API. App users are people who are not admins but use your apps, such as a team working with an internal tool. A super admin or a user manager gives the role in Configuration › Users, column App user. An app user signs in to the apps like an admin does but never sees the admin area, cannot manage or create apps, and gets X-Ago-User-Staff: false in your app. In an app’s chat, they talk only to the app’s linked agents that are public or that their permissions give them access to. Once the role is removed, they can no longer sign in, and the apps they already have open stop working within about a minute. To limit an app to some people, a super admin turns on Restricted in the app’s Access tab, in Studio › Apps, and chooses who has access to it, among admins and app users. When someone creates an app, they are added to its access list. A restricted app:
  • opens only for the people who have access to it, and super admins;
  • is managed only by those of them who also have access to AGO Apps;
  • cannot be called by your AGO agents, API sources or workflows: the call is refused with an error saying the app is restricted. The app’s API tab no longer offers to create an agent tool for it.
Keys and Claude connections a person created reach only the apps that person can manage. Removing an access stops their Claude connections and API calls right away, and server keys calling the app within 5 minutes. Someone already signed in to an app loses it within about a minute, as does anyone without access when an open app becomes restricted; the people who keep access are signed back in without noticing. The same applies when a person is deactivated or loses their admin or app user role. Sites are public, so they cannot be restricted.

Create your first app

1

Connect Claude to AGO

Connect your MCP client to AGO and grant the Apps Write scope.
2

Describe the app

Ask, for example: “Create an AGO app called price-check that returns the price including VAT for an amount and a country.” Claude creates the app, writes the code and waits until it is live.
3

Open it

Open the link Claude gives you, or go to Admin › Studio › Apps and choose Open app on the app’s card.
To change the app, ask Claude again. Every change is live in about a minute. If a change does not build or its tests fail, the previous version keeps running and Claude sees the error. To check a change before your team sees it, ask Claude to make it on a preview first.
Get the remote and a token with get_app_git_credentials, then work like with any repository. A push to main goes live; a push to any other branch updates the app’s preview.
A new app contains src/index.ts (a page at / and a JSON endpoint at /api/hello), AGENTS.md and CLAUDE.md. AGENTS.md holds the rules of this page for coding agents: keep it in the repository.

Connect a GitHub repository

Staff members can connect an existing app from Admin › Studio › Apps › your app › Code. GitHub then becomes the source of its code. The integration reads your selected repository; it never pushes changes to GitHub.
1

Prepare the repository

Use the AGO app contract: put the app entry point in src/index.ts, and keep dependencies and tests in package.json. Connecting replaces the source shown in AGO, so save any existing code you want to keep in GitHub first.
2

Grant access

In the GitHub card, choose Install on GitHub and select the repositories AGO may read. Return to AGO and choose Authorize GitHub using an account with access to the repository.
3

Choose the source

Enter owner/repository and a production branch, or leave the branch empty to use the repository’s current default branch. Choose Connect repository. AGO remembers this branch even if you later change the default branch on GitHub.
AGO checks the selected branch about once a minute. Sync now requests an earlier check. Compatible changes deploy automatically. Import and repository-access errors appear in Code › GitHub; build, test and runtime-check results appear in Deployments. The last working version stays live if an import, build, test or runtime check fails. While connected, make code changes and merge pull requests on GitHub. AGO code commits, preview promotion and new Git write credentials are unavailable. Only the selected branch deploys; other branches and pull requests do not create AGO previews. Secrets, databases, sign-in and rollback remain available. Each imported app must build and pass its tests, if provided. AGO also starts the resulting app and requests / before deployment. This check runs without secrets, databases, a browser or network access. If / needs those resources, choose a self-contained health route in ago.json:
The route must belong to your app, outside the reserved /_ago/ paths. Startup errors, request errors, timeouts and HTTP 5xx responses fail the check. This checks startup and one route; it does not replace tests for your app’s other features or its data access rules.
GitHub connections support apps, not public sites. Repository source and history must fit within the 20 MB import limit. If the integration is unavailable, contact AGO to enable it. After renaming or transferring a repository, reconnect it with its new name.
Disconnect GitHub stops automatic imports and restores editing through AGO from the last imported commit. It keeps the live app and your GitHub repository. Deleting an AGO app also leaves the GitHub repository untouched.

Use your app

Open it in a browser

The first time someone opens the app, the browser goes to your AGO workspace and comes back signed in, without a consent screen. The session lasts one hour, then the next page opened signs the user in again, usually without them noticing.

Let an agent call it

  1. Open Admin › Studio › Apps, select the app and open API.
  2. Select an endpoint and choose Create tool. AGO opens an HTTP Request Tool filled in from the endpoint.
  3. Review and save the tool, then add it to your agent.
Leave the tool’s authentication empty: AGO signs every call to your workspace’s apps and tells the app which user the agent acts for. The API tab needs the app to describe its endpoints at /openapi.json; new apps include one.
Copy the app’s API endpoint from For your AGO agents in Overview, for example https://api.agoapps.com/acme/price-check. Use it, followed by a path, as the URL of an HTTP Request Tool or an API Data Source, such as https://api.agoapps.com/acme/price-check/vat. Leave the authentication empty.Copy configuration in the API tab copies one endpoint’s OpenAPI description, to paste in ChatGPT, another assistant or an integration tool. It contains no credentials.Automatic tool setup supports GET, POST, PUT and DELETE, path and query parameters, and JSON object bodies. Uploads and custom header or cookie parameters need manual configuration.

Try an endpoint

Before giving an endpoint to an agent, call it yourself from the API tab:
  1. Select the endpoint and choose Try it.
  2. Fill in its arguments. They are the ones an agent tool sends.
  3. Choose Send. AGO calls the app in your name and shows the status and the answer.
Choose Preview instead of Live app at the top of the tab to explore and call the preview of the app, with the preview’s secrets. Agent tools always call the live app, so Create tool is available on the live app only. A call sent to the live app is a real one: an endpoint that changes something changes it. Only endpoints AGO can build a form for can be tried: GET, POST, PUT and DELETE with path and query parameters and JSON object bodies.

Chat with agents in the app

An app can include a chat with your agents, for example an assistant next to an order form. The person using the app chats as themselves: you don’t need an API key or a public agent.
  1. Open Admin › Studio › Apps, select the app and add agents under Agents in the app in Overview. The first one is the default agent; choose Make default to change it.
  2. In the app’s pages, use the AGO SDK with /_ago/agent as its base URL:
For your own chat interface, create the client with new AgoClient({ baseUrl: "/_ago/agent" }), or use <AgoProvider baseUrl="/_ago/agent"> with React. The default agent answers, unless a message names another linked agent: client.sendMessage("...", { agentId: "<agent name or id>" }). A coding assistant connected to AGO can also link agents with the set_app_agents tool. Limitations:
  • Only the agents linked to the app answer there.
  • Each person sees only the conversations they started in this app. They don’t see their other AGO conversations there.
  • The chat in the app can’t create tickets or show forms and proactive messages.
  • The app’s web pages chat with the agents. The app’s server code can’t.

Call it from outside AGO

Any program outside AGO can call the app’s API: your back office, a script, an integration platform or a tool such as Postman. It needs a key created for the app.
1

Create a key for this app

In Admin › Studio › Apps, select the app, open API and choose Create key under Access from your servers; the Server keys button at the top of the tab takes you there. Name it after the program that will use it and, if you want, restrict it to that program’s IP addresses. Copy the key: it is shown only once.
2

Find the URL to call

The API tab shows the app’s Base URL, for example https://api.agoapps.com/acme/price-check, and the endpoints the app publishes. Add the endpoint’s path to the base URL: https://api.agoapps.com/acme/price-check/vat.
3

Send the key with each request

Put the key in the Authorization header, after Bearer. Nothing else is needed: no token to request first, nothing to renew.
The response is the one your app’s code returns. When a call is refused before it reaches the app, the status code and error tell why: see Manage and troubleshoot.
Keep the key on the server or in the script’s settings. Never put it in a web page or a mobile app, where anyone can read it: calls made from a web page on another site are refused anyway. The key can only call this app: it gives no access to the rest of AGO, and other keys, including Full Access keys, cannot call apps. Create one key per program so you can revoke them one by one. A key keeps its app when you rotate it. A revoked key stops working within 5 minutes; an IP restriction applies to every call. You can also create the key in Studio > API Keys, with the Apps Invoke scope and the app selected. A program can also exchange the key for a token valid 5 minutes with POST /api/v1/apps/<app>/tokens, then call the app with that token.

Follow its use

Open the app’s Statistics tab to see, for the live app or its preview, over the last 24 hours, 7, 30 or 90 days:
  • Visits, Page views, Users, Average visit and Engagement rate. Up to 30 days, each is compared with the previous period of the same length once both periods have at least 30 visits. Select one to chart it by hour or by day.
  • The 10 most viewed Pages, and the 10 main Sources that sent visitors (Direct when none), Countries and Devices.
  • Who uses the app: up to 100 people who opened it while signed in, most recent first, with their visits, page views and last visit.
  • API: the calls made by AGO’s agents and with API keys, the share that failed with a server error (5xx) and the response time of 95% of the calls.
A visit starts each time someone opens the app in a browser, and counts as engaged after a second page without reloading or 10 seconds on screen. Known bots are not counted. AGO counts them by adding a small script to the app’s pages, which reports to the app’s own address: nothing is stored in the browser and no cookie is set. Statistics are kept three months, and times are in UTC. The paths /_ago/insights and /_ago/insights.js are reserved.

Write the code

This section is for you or the coding agent writing the app; the app’s AGENTS.md contains the same rules.

The contract

src/index.ts exports a fetch function that receives each request and returns a response. Route on new URL(request.url).pathname and request.method. The second argument, env, holds your workspace name in env.AGO_TENANT, the app’s secrets and its databases.

Who is calling

Your code never checks a password or a token: AGO does it before the request reaches the app, then tells your code who is calling with these headers. Trust these headers: AGO removes any X-Ago-* header sent by the caller, and your app cannot be reached without going through AGO. For example, to accept a route only from your servers:

What is available

  • Web-standard APIs: fetch, Request, Response, Headers, URL, URLSearchParams, crypto.subtle, crypto.randomUUID, TextEncoder, TextDecoder, atob, btoa.
  • npm packages that only use those APIs, for example zod or date-fns. List them in package.json; install scripts do not run.
The supported app contract uses Web APIs. Apps and dependencies must not rely on Node.js built-ins or an operating-system filesystem; keep persistent data in a database. Global variables may survive between requests but can be reset at any time. An app that drives a browser is the exception: it runs with Node.js compatibility, which Playwright needs.
If you run the app on your computer, commit the package-lock.json that npm install creates: the build then installs exactly the versions you tested. To run tests on every deployment, add a test script to package.json.

Secrets

Keep the keys of the services your app calls, such as an OpenAI or a CRM API key, as secrets, never in the code. Set a secret in Admin › Studio › Apps, on the app’s Secrets tab, or with the API and the Apps Write scope:
Setting an existing secret replaces its value. GET /api/v1/apps/<app>/secrets lists the names and DELETE /api/v1/apps/<app>/secrets/<NAME> deletes one. Claude can list and delete secrets but cannot set them: give a key to AGO yourself, never in a conversation. Read a secret from env:
  • Names use uppercase letters, digits and underscores, start with a letter and have 64 characters at most. Names starting with AGO_ are reserved.
  • A value is at most 5 KB, and an app holds at most 50 secrets.
  • An app receives secrets once its first version is live, about 30 seconds after you create it.
  • Values are never shown again, not even to staff. To change one, set the secret again.
  • Anyone who can change the app’s code can read its secrets. Give the app its own key, with the lowest permissions and a spending limit when the service offers one.
  • The preview has its own secrets: add ?environment=preview to these requests, for example to give it a test key. Set them once the preview has been built.

Databases

An app can keep data in SQLite databases. Each database belongs to one app: no other app or workspace can reach it. Declare a database in ago.json at the root of the repository, and create its tables in SQL files under migrations/:
ago.json
migrations/0001_init.sql
Each deployment applies the new migrations, in file name order, before the new version goes live. To change the schema, add a file such as migrations/0002_add_tags.sql; never edit a migration that already ran. Use it from env, under the name declared in ago.json:
Always pass values with ? and .bind(...), never by building the SQL text. A statement returns its rows with .all(), its first row with .first(), or runs without returning rows with .run(); env.DB.batch([...]) runs several statements as a whole. The AGENTS.md of your app describes the database API in full.
  • Names use uppercase letters, digits and underscores, start with a letter and have 32 characters at most. Names starting with AGO_ are reserved, and a database cannot share its name with a secret.
  • An app has at most 5 databases of up to 10 GB each. With several, put each one’s migrations in its own folder: migrations/DB/0001_init.sql, migrations/AUDIT/0001_init.sql.
  • A migration runs as a whole or not at all. If one fails, the previous version stays live and the deployment shows the SQL error.
  • Removing a database from ago.json detaches it from the app but keeps its data.
  • Data is stored in the European Union.
  • The preview has its own databases, created empty and migrated from its branch: trying a change never touches the live data. Add ?environment=preview to read them.
The app’s Databases tab shows the tables and their rows. Claude reads them with query_app_database, and the API with POST /api/v1/apps/<app>/databases/<DATABASE>/query and the Apps Write scope: both accept a single SELECT and return at most 200 rows. Only the app’s code can change the data.

Browser automation

Some tools your team uses have no API: a back-office, a supplier portal, an old admin console. An app can open a real Chromium browser, sign in the way a person would, do the work and return a report. Your agent then carries out the task through a tool and tells the user what happened. You only describe two things: how to sign in, and what each task does. AGO does the rest, the same way for every app.

Create the app

Ask Claude, for example: “Create an AGO app called orders-bo from the browser starter. It signs in to our order back-office and refunds an order.” Through the API, send "starter": "browser" to POST /api/v1/apps. To add a browser to an existing app, set "browser": true in its ago.json. The app is one file, src/index.ts, next to the ago.json that turns the browser on. The starter is a fuller example written for an imaginary order back-office, to replace with your own tool. An app looks like this:
No package.json is needed: AGO provides @ago/browser and Playwright.

What AGO does for every such app

  • One tool per task. Each task is served at POST /api/tasks/<name> and described in /openapi.json, so creating its tool takes one click. An input the task did not declare is refused before any browser opens.
  • The browser. It is opened for the task, signed in, and always closed.
  • The report your agent receives: the steps done and the result, or why the task was not done. A task ends as done, refused (the tool said no), failed (the app could not do its work, with the page it stopped on) or busy (no browser was free: nothing was done, and the task can be sent again). Only failed means the app needs fixing. The values of the app’s secrets are removed from every report.
  • The journal. Every run is recorded for 30 days with its input, who asked, how it ended and its steps, in the AGO_JOURNAL database of the app. A call refused for its input, or made during the pause after a refused sign-in, starts no run and is not recorded.
  • Health and sign-in checks. GET /api/health opens no browser and answers ok, degraded or failing with the problems found. It tells any caller, an agent included, whether the app works and how often it failed; what a run was asked and why it stopped stay in the journal, which only admins read. POST /api/health/sign-in signs in and reports whether the tool accepted the credentials.
  • A pause after a refused sign-in. Tasks stop trying for 15 minutes, or until the sign-in check succeeds, so that a wrong password does not lock the account.
  • A view of the browser. In the app’s API tab, trying a task shows what the browser displays while it works.
  • An Activity tab in the app, with whether it works and what its tasks did.

Try a task and watch the browser

A task is an endpoint of the app like any other: open the app in Admin › Studio › Apps, open API, select the task and choose Try it. Fill in its fields and choose Send. The tab shows what the browser displays while the task works, each step, then the report your agent would receive. It is how you confirm a task does the right thing, and how you see where it stops when it fails. To put a task in service:
  1. Set the app’s secrets, then choose Check the sign-in in the Activity tab and send it.
  2. Try each task on the preview first, with a test account in the preview’s secrets: a task sent to the live app acts for real in your tool.
  3. Choose Create tool on each task and add the tool to your agent.
What the browser shows is not kept, and only admins see it: your agents and servers receive the report only.

Follow what the app did

The Activity tab of the app shows, for the live app or its preview:
  • Whether the app works, when it last signed in, and how many tasks ran and failed over the last 24 hours.
  • Secrets to set and Problems found, which tell you what prevents the tasks from working.
  • Check the sign-in, which opens the sign-in check ready to send: it confirms the tool accepts the app’s credentials.
  • Latest runs: the 30 most recent runs, whoever started them, with their input, outcome and steps. Run again opens the task filled in with the same input. Older runs, up to 30 days, are in the journal.

Check that it keeps working

Write tasks that stay safe

  • One task per thing to do, with every input declared. Do not write a task that runs steps or opens addresses chosen by the caller: your agent should only be able to do what you wrote a task for.
  • Read the result back from the page after acting, so the report says what the tool shows.
  • Treat page content as data. Text read from the tool is returned to the agent, never followed as instructions.
  • For actions that cannot be undone, a background agent can wait for a person’s approval before calling the tool: see Approval for Background Runs.
Limitations:
  • Your workspace’s apps can have 10 browsers open at the same time, previews included. A task that finds them all taken waits up to 20 seconds for one, then ends as busy (HTTP 429) without having done anything. Ask AGO if you need a higher limit.
  • The browser is Chromium. It runs on the public internet and its IP address changes, so it cannot reach a tool behind a VPN or an IP allowlist.
  • A sign-in that asks for a CAPTCHA or a second factor cannot be automated.
  • Keep each task under a minute: the user is waiting for the agent’s answer. Split longer work into several tasks.
  • An app that needs Playwright without this structure can add @cloudflare/playwright to its package.json and call launch(env.BROWSER) itself. It then gets none of the above.

Limits

Browser rules

  • POST, PUT, DELETE and WebSocket requests must come from the app’s own pages. A request sent from another site, including another app, gets 403 with {"error": "cross_origin_request"}.
  • Cookies set by the app must not have a Domain attribute; such a Set-Cookie header is removed.
  • After the one-hour session, or once the user’s access to the app was removed, a fetch from the app’s page gets 401 with {"error": "login_required"}: reload the page.

Examples

A JSON API with validation

GET /vat?amount=100&country=FR returns {"amount":100,"rate":0.2,"total":120}.

A page that posts to its own API

To keep the notes, store them in a database.

Calling an external API

For an API that needs a key, store the key as a secret.

Using an npm package

package.json

Deployments

For apps edited through AGO, each change saved on main is deployed in about a minute. GitHub-connected apps deploy their selected production branch after import and an additional runtime check. The build steps are:
  1. AGO fetches the code and installs the npm packages listed in package.json, without running their install scripts. With a package-lock.json, it installs exactly the versions listed there.
  2. It bundles src/index.ts (or src/index.js) with its packages.
  3. It runs npm test if package.json has a test script.
  4. It applies the new database migrations, then puts the new version live.
If a step fails, the previous version keeps answering. A change whose files were already built, such as a promoted preview, skips steps 1 to 3. If two changes are built at the same time and the older one finishes last, it is marked superseded and not deployed. To check which version is live, call GET /_ago/version on the app: every deployed app answers it with {"version": 7, "commit": "3f2a9c…", "builtAt": "…"}. A change is live once the commit served is the one you made. Right after a deployment, some requests can still reach the previous version for a few seconds.

Previews

Previews are available for apps edited through AGO. While GitHub is connected, other branches do not create previews and preview promotion is unavailable. A change saved on any branch other than main is built like a live change, but deployed as the app’s preview, at https://preview--<app>.<workspace>.agoapps.com (API: https://api.agoapps.com/<workspace>/preview--<app>/…). Your team signs in to it like to the app, agents call it the same way, and the live app is not affected.
  • An app has one preview: the branch saved last.
  • The preview has its own secrets and databases. env.AGO_ENVIRONMENT is preview there and production on the live app.
  • Ask Claude, for example: “Try a new layout for price-check on a preview.” It saves the change on a branch and gives you the preview link.

Put a preview live

When the preview is right, ask Claude to put it live (promote_app), or call POST /api/v1/apps/<app>/promote with {"branch": "<branch>"} and the Apps Write scope. main then gets the branch’s changes and the version you checked goes live within seconds, without being built again. Its new migrations are applied to the live databases. If main changed since the branch was created, the promotion is refused so that nothing live is lost: add those changes to the branch, check the preview again, then promote it.

Roll back

To put an earlier version back live, ask Claude (rollback_app) or call POST /api/v1/apps/<app>/rollback with {"version": 7}. It takes a few seconds, as the version is not built again.
  • Only a version that was live can come back, among the app’s last 10 different versions.
  • The code on main and the databases do not change: tables added since stay, and the next change saved on main is deployed as usual. Fix the problem in a new change, then save it.

Delete an app

Ask Claude (delete_app, after confirming the app’s name) or call DELETE /api/v1/apps/<app> with the Apps Write scope. The app, its preview, its code, its databases and their data, its secrets and the keys created for it are deleted for good. This cannot be undone.

Manage and troubleshoot

Admin › Studio › Apps lists the apps with their status and who created them. Open app opens the app; select its card to manage it:
  • Overview: the link to share with your team, the API endpoint for your agents, and the latest deployments.
  • API: the endpoints the app publishes, Create tool, and the keys of the programs that call the app.
  • Deployments: the latest 20 builds, with their logs and errors.
  • Secrets: the names of the app’s secrets.
  • Databases: the tables and rows of the app’s databases.
  • Code: the files of main. Markdown files open formatted; switch to Code to see their source, and toggle Wrap lines for long lines.

Security

  • Each app runs isolated from every other app. Its build can only read the app’s own code.
  • Every call is checked by AGO before it reaches the app: a session for people, a token valid 60 seconds for one app for your agents, a key created for the app for your servers. The app never receives these credentials.
  • An app’s databases are bound to that app. Workspace staff can read their data in the admin; only the app’s code can write to them.
  • Secret values are stored encrypted with the app. Nobody can read them back, including AGO.
  • AGO can turn AGO Apps off for a workspace or a single app; the apps then answer 503 apps_disabled.