Skip to content

Grant connections to the computer from the CLI (work 080) - #985

Open
opencomputer-app[bot] wants to merge 6 commits into
mainfrom
sp/computer-grant-cli
Open

opencomputer-app[bot] wants to merge 6 commits into
mainfrom
sp/computer-grant-cli

Conversation

@opencomputer-app

@opencomputer-app opencomputer-app Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Exposes blue's /v1/computer/service-connections (blue#326) on the public API and adds CLI commands for it:

  • api-edge: GET|POST|DELETE /api/managed-agents/computer/service-connections on the computer API family. POST and DELETE are grant routes, so computer keys get 403 computer_key_forbidden (blue refuses them too).
  • CLI: opencomputer connection grant <alias|id> (an admin grants their own connection to everyone on the computer), revoke <alias|id> (all of a connection's grants; owner or admin), grants (list).

Thread and personal grants come from Slack (step 3). Tests: api-edge route tests (122 pass), CLI build + tests (176 pass).

  • opencomputer connection fetch <service> <path> [--method] [--data] [--header] [--alias]: calls a service through a connection (POST /connections/<provider>/fetch); on the computer only granted connections answer.

Requested by @mohamed Habib in Slack

On the computer only granted connections answer, so an agent in a Slack
thread can call Linear once someone grants it.
# Conflicts:
#	cloudflare-workers/api-edge/src/computer_api.test.ts
#	cloudflare-workers/api-edge/src/computer_api.ts
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​opencomputer/​cli@​0.7.23 ⏵ 0.7.24N/AN/AN/AN/AN/A

View full report

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant