OAuth applications
An OAuth application lets a third-party client act on Artio data on a user's behalf, without anyone pasting a long-lived key. The user signs in to Artio, picks which of their organizations the client may reach, and approves a named set of permissions. This page covers publishing an application and the rules that govern it.
You do not need an application of your own to connect a client that already has one — see MCP Server for connecting an agent. Publish one when you are building the integration and want it to carry your organization's identity and credentials.
Publish an application
You must be an owner or admin of the organization.
The form requires at least one callback URL and will not save without one. Without it you cannot finish, and the client secret is shown once, at the last step.
- Open your organization's Settings → Apps you publish and click Publish a new OAuth application.
- Set Application name to a name your users will recognize on the consent screen. An admin of your organization vouches for this name by publishing it. Website URL is optional.
- Under Authorization callback URLs, add the URL the client will be
redirected back to. At least one is required. All URLs must use HTTPS,
except on localhost (
localhost,127.0.0.1and[::1]may usehttp). URLs are stored normalized, so what you see after saving may differ slightly from what you typed. - Under Application permissions, set each resource to Read or Read & Write. Ask for the narrowest set that works — see Scopes.
- Click Publish application. Artio shows the
client_secretonce. Nobody — including Artio — can retrieve it again; losing it means rotating the secret, which breaks any client already using the old one.
The client then uses the client_id and client_secret to start the
authorization flow.
Use it with the Claude CLI
To make the Claude CLI carry your organization's own credentials, publish an
application as above with the callback URL http://localhost:8765/callback
(pick any free port, and use the same one below). Then:
-
Register the server, with the same port as the callback URL:
claude mcp add --transport http \--client-id <APP_CLIENT_ID> --client-secret --callback-port 8765 \artio https://mcp.artio.so/mcp--client-secretprompts for the secret. To skip the prompt, setMCP_CLIENT_SECRETin your shell first. -
Start the CLI, run
/mcp, selectartioand sign in through the browser. Approve the organizations the CLI may use.
The client secret is a credential. Never commit it or put it in a shared
.mcp.json. Give it to each person privately, for example through a password
manager.
A published app matches callback URLs exactly, port included. If the port is
already in use, choose another, add its callback URL to the app
(http://localhost:<port>/callback), and pass the new port to
--callback-port.
Clients without credentials
A client can also identify itself with a Client ID Metadata Document
instead of registered credentials: its client_id is an HTTPS URL that Artio
fetches to learn who the client is. Artio admits this only from an allowlist of
origins, and such a client needs no callback URL configured here. The allowlist
holds the sites of Claude, ChatGPT, Codex, VS Code, opencode, pi, Cursor and Grok.
ChatGPT and Codex share a site but use separate documents, so they are two apps.
Grok Bot uses Cursor's document, so it appears as Cursor.
Command-line clients can use a localhost port of their choice for the sign-in.
This does not bypass your organization's control. An owner or admin still
authorizes the client per organization, and the grant appears in Settings →
Third-party access where it can be revoked like any other.
Artio registers clients this way, not through Dynamic Client Registration.
There is no /register endpoint and the discovery document deliberately
advertises none, so do not go looking for one.
What the consent screen asks
The consent screen names the client, lists the permissions it is asking for in plain language, and lets the user pick which organizations to authorize.
The identity line at the top depends on how the client identifies itself:
- A published application is shown by the name an
owner/adminof the publishing organization chose, along with that organization. Artio does not review these names — the screen tells you which Artio organization stands behind the application, not that anyone vetted what it calls itself. - A credential-less client is shown by the origin of its
client_idURL, with any name it claims for itself underneath as secondary. The origin is the part bound by DNS and TLS, so it is the part worth reading; a display name is just a string the client asserts about itself. (When a client claims no name, the secondary line is omitted rather than repeating the origin.)
In both cases the durable identity is the organization or the origin — never the display name.
The user picks All approved organizations or Only the organizations I
select. A member can use the client only in organizations where an owner or
admin has approved it; an admin can approve it there with Approve as admin.
If you are not an owner or admin
Choose Request approval on the consent screen. Each owner and admin of
that organization receives an email, and you see the result at your next
sign-in. See
If your organization has not approved the app.
One grant, several organizations
The token a client receives belongs to the user, not to a single organization. It carries the scopes they approved and nothing else — in particular it does not record the organizations they ticked.
Reach is recomputed on every request instead, from three things at once: the
scopes in the token, the user's current role in that organization, and that
organization's standing authorization of the application. So the token reaches
every organization that has authorized this application and where the user is
still a member — which can be wider than the set they ticked, if another
owner/admin had already authorized the same application for an organization
they belong to.
Consequences worth knowing:
- Revoking one organization's authorization stops the client working for that organization only. Other organizations are unaffected.
- When a user leaves an organization, the client stops working for it immediately — no revocation needed, because membership is re-checked per request.
Revoke from Settings → Third-party access in the organization whose access you want
to withdraw. Revoking, like authorizing, requires owner or admin there.
Scopes
Scopes are resource:level strings. write implies read on the same
resource, so asking for datasets:write alone also grants datasets:read.
Resources are independent of each other: holding one resource's scope never
grants anything on another.
| Resource | Scopes | What it covers |
|---|---|---|
organization | organization:read | Your organization's profile and member list. |
runs | runs:read | Pipeline runs, the environments they execute in, and which secrets exist — never a secret's value. |
datasets | datasets:read, datasets:write | Data sources and the tables they materialize. |
agents | agents:read, agents:write | Agent sessions, tasks and their scheduled runs. |
models | models:read, models:write | Notebooks, semantic models and the metrics defined on them. |
connections | connections:read, connections:write | Links to external systems this organization has connected. |
organization and runs are read-only — there is no organization:write or
runs:write. A caller may observe execution and see which secrets exist, but
secret values are not on the schema at all, and creating a run goes through the
scope owning the thing being run.
Troubleshooting
| Symptom | Cause |
|---|---|
| A call fails saying you lack a permission | The token does not carry that scope, the user's role in the organization does not allow it, or the organization's authorization was revoked. All three are checked on every call. |
| The client stopped working for one organization | That organization's authorization was revoked, or the user is no longer a member of it. Other organizations keep working. |
| Authorization fails at the redirect | The callback URL registered on the application does not match the one the client actually used. |
| The client asks the user to sign in again | The access token expired. Artio normally answers an expired token with an invalid_token challenge pointing the client at the metadata it needs to re-authorize. On a call slower than a few seconds the expiry surfaces as an error instead. |
Which server is which
Artio's authorization server for this flow is api.artio.so. Its discovery
document lives at https://api.artio.so/.well-known/oauth-authorization-server
and its endpoints sit under /v1/oauth/.