In short
CoWork OS can guide the setup and do the mechanical steps, while you hold the keys and approve the consent screen. Its integration_setup tool lists missing inputs, previews changes with a dry run, then runs OAuth and a health check. Remote MCP servers sign in with OAuth 2.1 and PKCE. Tokens are stored encrypted, and browser passwords go through a private dialog.
What you build
Setup experiences people describe when “it opened the console and provisioned a token”:
- Checklists per provider: which clicks, which scopes, which env vars land where.
- Separation between assistant suggestions and human confirmation on consent screens.
- Secret storage that never pastes tokens into chat logs or screenshots by default.
The win is fewer misconfigured keys, not unsupervised account surgery.
How it works in CoWork OS
- Chat-native integration setup: the
integration_setuptool covers Tier-1 connectors such as Jira, Linear, HubSpot and Resend.inspectreturns the missing inputs and aplan_hash.configurewithdry_runcomputes the change with no writes and no OAuth launch. If anything changed sinceinspect, the staleplan_hashmakes it fail without changes. On success it stores the tokens and can run the provider's health check. - Remote MCP with OAuth: add a server under Settings > MCP Servers > Remote (OAuth). Discover from server fills the endpoints when the server publishes RFC 9728 and RFC 8414 metadata. Sign in as a person with PKCE, or use an agent key for headless runs. Tokens renew on their own, and write tools ask first.
- Browser Workbench sign-in: when the agent reaches a console's login page it stops with
needs_user_sign_in. You type the password or 2FA code in a private dialog that never becomes a chat message. Passkeys and device approvals stay manual. - Encrypted secret storage: API keys, MCP credentials and tokens are encrypted with AES-256-GCM under a key sealed by the macOS Keychain, Windows DPAPI or Linux Secret Service.
- Password manager references: put
op://,bws://orbw://references in key fields and MCP environment variables. CoWork reads the value only when a request needs it and never writes it to settings. - aurl skill: an optional skill that registers an OpenAPI or GraphQL spec and makes validated calls, a quick way to test a new key with one read.
Worked example
You want CoWork OS to read your team's Jira issues without pasting credentials into the chat. The Jira connector is managed in Settings > Integrations. You type:
Set up the Jira integration with OAuth. First inspect it and list any inputs that are still missing. Run a dry run and show me what will change, then wait for my go-ahead. After it connects, run the health check and one read-only search for issues assigned to me. Do not create or edit issues.
- The agent calls
integration_setupwithinspect. It lists any inputs that are still missing, which you add in Settings rather than in the chat, and returns aplan_hash. - It runs
configurewithdry_run. Nothing is written and no browser opens. It lists the steps and stops. - You reply "go ahead". It runs
configurewith the sameplan_hash, which starts the OAuth sign-in. You read the requested scopes on Atlassian's consent screen and approve them yourself. - The access and refresh tokens are saved, encrypted, in the connector's settings. The agent runs
jira.healthto confirm the sign-in, then onejira.search_issuesquery.
You end with a connected Jira integration, a passing health check and a list of your open issues. Nothing was created or changed in Jira. If you later ask for a new issue, the call stops at an approval card that shows the exact fields first.
Why CoWork OS is a strong fit
- Skills can encode provider-specific OAuth quirks and rotate links when docs move.
- Local-first storage options for tokens—pair with OS keychains where available.
- Audit trail: who approved which scope.
How to use
- Never grant broader OAuth scopes than the integration needs.
- Use short-lived tokens where vendors support them; rotate on schedule.
- Record the approval in a ticket or note—future you needs the why.
- Test with read-only calls before enabling writes.
- Revoke and re-issue if a token ever appears in a log or screenshot.
Prerequisites
- Admin access to the cloud account—agents cannot invent it.
- Billing alerts on cloud projects used for experiments.
Steps
- Dry-run the doc yourself once—fix ambiguities before automation.
- Add screenshots or deep links only where stable.
- Parameterize project id, region, and environment—no copy-paste drift.
- Verify token works with a minimal API call script.
- Archive the onboarding packet when the integration ships.
Suggested prompts
- “List scopes we are about to request and why each is needed.”
- “What is the smallest permission that still works?”
- “If consent fails, output exact next human step—no guessing.”
Launch readiness
- Least privilege verified in the provider’s IAM UI.
- Break-glass revoke instructions tested.
- On-call knows which integration owns which project.
Common pitfalls
- Over-scoped keys “because it was easier.”
- Tokens in shell history or CI logs.
- Shared admin accounts with no individual accountability.
- Blind trust of “the agent clicked it for me”—verify scopes.
Frequently asked questions
What is the difference between an API key and OAuth?
An API key is a long-lived secret that acts as your account or project. With OAuth you approve specific scopes on the provider's consent screen, and it issues short-lived access tokens plus a refresh token. OAuth is easier to limit and revoke. CoWork OS supports both, and renews OAuth tokens for remote MCP servers before they expire.
What redirect URI should a desktop app use for OAuth?
Desktop apps usually use a loopback address such as http://127.0.0.1 with a fixed port, plus PKCE, as RFC 8252 describes. For custom remote MCP servers, CoWork OS uses http://127.0.0.1:18768/oauth/callback. Register it with the provider exactly as shown. Some providers, such as Workday, need the https form instead.
Where should I store API keys on my computer?
Not in shell history, a committed .env file or a chat window. Use your operating system's keychain or a password manager. CoWork OS encrypts stored keys with a key sealed by the OS keychain, and its key fields accept 1Password and Bitwarden references, so the real key is read only when needed and never saved in settings.