
# New-app defaults

These settings decide what a new app starts with: how people sign in to it, whether it gets a card in your organization's launcher, and which stack `agc init` uses in an empty folder. Set them in **Org settings** > **General** > **Defaults for new apps**, then press **Save**.

It worked when the page shows "Saved." and the next `agc init` in your organization writes your choices into the new app's `agentcloud.toml`. Existing apps never change.

## Ask your agent

```text
Give camp-bookings a clear title and a one-line description for our company launcher,
then ship so the card updates.
```

The agent edits `[app]` and ships. The card changes when that release goes live.

## Do it in the console

1. In the left menu, open **Org settings**, then the **General** tab.
2. In **Defaults for new apps**, choose:
   - **Sign-in**: **agent.cloud sign-in**, **The target's sign-in**, or **None: public**.
   - **List new apps in <launcher>**: **Listed** or **Not listed** (shown only while a launcher is linked).
   - **Stack**: **TypeScript: React and Node 24** or **Python: React and FastAPI**.
3. Press **Save**.

**Where they run** shows the default target; **Change** opens **Deployment targets**. Only owners can save, and each change is recorded in Activity ("set sign-in for new apps to…", "set launcher listing for new apps to…", "set the default stack to…").

One app's card is on the app's **Settings** page, **Launcher**, titled with your launcher's name.

The same page's **People's agents** section sets whether people's agents can use your apps that serve their own `/mcp`: **On** by default or **Off** by default. An app's owner can still turn it on or off for that app on its settings page, and General lists the apps that differ.

## How it works

### What `agc init` writes

For an app created in an organization, `agc init` writes the defaults into its new `agentcloud.toml`:

| Default | What lands in `agentcloud.toml` |
|---|---|
| Sign-in: Agent Cloud sign-in | nothing (the platform default) |
| Sign-in: the target's sign-in | `[auth]` with `provider = "edge"` |
| Sign-in: none | `[auth]` with `provider = "none"` |
| Launcher linked | `[app] title` and `description` stubs, and `listed = false` if listing is off |

The envelope reports them in `data.defaults`, or in `data.defaults.would_add` if `agentcloud.toml` already existed and was left alone. The default stack applies only in an empty folder; `agc init --stack <name>` overrides it (`stack_default_from: "org"` when it didn't). The **Start an app** prompt also names a sign-in default other than Agent Cloud sign-in, so the agent doesn't build a sign-in page it won't need.

### Which sign-in to pick

| Choice | People sign in with | Pick it for |
|---|---|---|
| **agent.cloud sign-in** | Google or an email link, on pages the app builds | Customer-facing apps, or public pages plus sign-in |
| **The target's sign-in** | The target's gate in front of the app; the app reads `x-agc-user-email` and `x-agc-user-name` | Internal tools: the least code, and nobody reaches the app unsigned |
| **None: public** | Nobody | Marketing pages, public calculators |

**The target's sign-in** needs a default target with its own sign-in: Agent Cloud's own and platform targets always have one, an AWS target once its edge sign-in is configured. Otherwise it's disabled; if the target loses it later, new apps get Agent Cloud sign-in until it's back, and General says so.

### The manifest wins

These are starting points, not policy: any app can change `[auth] provider` or `[app] listed`, and its sign-in mode is its live release's. To keep drift visible:

| Where | What it shows |
|---|---|
| A ship changing `[auth] provider` on a live app | Waits for a person: "Changes how people sign in: edge → Agent Cloud." |
| The release review | Rule `signin-mode` flags an app that signs people in itself on a target with its own sign-in |
| `agc status` | `data.sign_in` with `mode`, `org_default` and `is_org_default` |

## Launcher linkage

A launcher is your organization's own app portal, the internal page where your people find their tools. Once an Agent Cloud operator links it for you, every app that goes live gets a card there without anyone registering it. You know it's linked when **Org settings > General** shows a **List new apps in <your launcher>** row, and an app's settings say "Listed in <your launcher>" after its next release.

An organization links at most one launcher, through an adapter: today only `http-registry`, for a registry taking a JSON upsert and a delete behind OAuth client credentials. The operator stores its settings and your client credentials; the secret is sealed like connection credentials, never shown or logged, and sent only to the token endpoint. For the Agent Cloud tile in Okta or Entra ID's My Apps, see [company sign-in](/docs/owners/company-sign-in-and-scim.md).

| When | What happens to the card |
|---|---|
| A release goes live | The adapter sends the card, never awaited, so a slow portal can't hold a release |
| Nothing changed | Nothing is sent; a new title, description or address sends it again |
| The app is deleted, or ships `[app] listed = false` | The card is removed (at that release, for `listed = false`) |
| The app is in no organization | It never publishes |
| The launcher is linked after apps went live | Their cards arrive at each app's next release |

Leave **Listed** on unless your portal is curated by hand; a card for every live app is the point of linking. Agents learn the default from the "Your organization" part of AGENTS.md.

| The app's settings show | When |
|---|---|
| "Listed in <label>", with the card's title and address | Listed |
| "Listed at its next release" | Not sent yet |
| "Not listed yet", the error, and "It’s tried again at the next release." | Publishing failed |

## Listing an app in the launcher

An app controls its own card with `[app] title` (cut at 80 characters), `[app] description` (one line, cut at 300) and `[app] listed`. Changes take effect at the next release that goes live. Without a linked launcher these keys do nothing ([agentcloud.toml reference](/docs/reference/agentcloud-toml-reference.md)).

```toml
[app]
name        = "camp-bookings"
title       = "Camp Bookings"
description = "Book summer camp spots and manage the waitlist."
```

To keep an app off the launcher (a staging copy, an admin tool), set `listed = false` under `[app]` and run `agc ship`.

## Reference

| Setting | Stored values | Default |
|---|---|---|
| Sign-in | `agent.cloud`, `edge`, `none` | `agent.cloud` |
| List new apps in <launcher> | on, off | on |
| Stack | `typescript`, `python` | `typescript` |

| Card field | Comes from |
|---|---|
| `slug` | The `slug` template, default `{app}` |
| `title` | The `title` template, default `{title}`: `[app] title`, else the app's name in words (`camp-bookings` → "Camp Bookings") |
| `description` | `[app] description` |
| `url`, `path` | The `url` template, default `https://{host}/`; the `path` setting, default `/` |
| `app` | The app's name |

| `http-registry` setting | What it is |
|---|---|
| `api_base` | The registry API's https origin |
| `token_path`, `scope` | The client-credentials token endpoint (a form post) and the scope to ask for |
| `publish_path`, `remove_path` | Where a card is POSTed; the DELETE path, with `{slug}` |
| `slug`, `title`, `url`, `path` | Templates over `{app}`, `{host}` and `{title}`; the card's path field |
| `label` | What your people call the launcher; default "the launcher" |

## Errors

| Code or message | Fix |
|---|---|
| "The organization's default target has no sign-in of its own, so new apps can't use it." (console, HTTP 400) | Configure the target's edge sign-in, or pick another option. |

`ship.edge_unavailable` means a ship asked for `provider = "edge"` on a target with no sign-in configured; its exit and fix are in the [Error code catalog](/docs/reference/error-code-catalog.md). A launcher publish has no error code and never fails a release; the app's **Launcher** section shows the registry's answer, such as "the token endpoint answered 401".

## Agent notes

- Keep the `data.defaults` lines; removing `[auth]` from a live app waits for approval. Write `description` for the people browsing the launcher.

## Related

- [Choosing a sign-in shape](/docs/build/choosing-a-sign-in-shape.md)
- [The edge gate (shape 1)](/docs/build/the-edge-gate.md)
- [Starters](/docs/build/recommended-stack.md#starters)
- [Deployment targets (owner view)](/docs/owners/deployment-targets.md)
- [Changing an app's address](/docs/build/custom-domains.md#changing-an-apps-address)

<!-- feedback:start -->
---
Wrong, outdated or unclear? Run `agc feedback docs "owners/new-app-defaults: <what is wrong>" --body <file>` with the sentence quoted in the file. No code or app data is sent.
<!-- feedback:end -->
