nut connect
Interact with third-party services — Google Drive, Slack, HubSpot, Figma, Stripe, and more — directly from the CLI through your Coconut control plane.
Authentication
Thenut connect command requires a valid callback token to communicate with the control plane. You can provide it in one of two ways:
- Environment variable (recommended): Set
COCONUT_CALLBACK_TOKENin your shell environment - Flag: Pass
--token <token>on each invocation
-t, --token <token>— Callback token (defaults to$COCONUT_CALLBACK_TOKEN)--host <url>— Control plane base URL (defaults to$COCONUT_HOSTorhttps://app.coconut.dev)-r, --raw— Output raw JSON without formatting--json— Alias for--raw
nut connect list
List all third-party services currently connected to your Coconut instance.
proxy subcommand (e.g. google_drive, slack, hubspot, figma, stripe).
nut connect proxy
Send an authenticated API request to a connected service. Coconut handles authorization headers automatically — you just specify the app, HTTP method, and path.
app— App slug as shown bynut connect list(e.g.google_drive,slack,hubspot)method— HTTP method (GET,POST,PUT,PATCH,DELETE)path— API path relative to the service, or a full URL
-b, --body <json>— JSON request body--headers <json>— Additional headers as a JSON string
Examples
Google Drive — list recent files:How It Works
When you runnut connect, the CLI proxies your request through the Coconut control plane, which injects the necessary OAuth or API credentials that were configured on the Dashboard. This means:
- You never handle raw API keys for connected services — credentials stay in the control plane.
- Any service available on the Dashboard can be accessed from the CLI, scripts, or agent workflows.
- Agents can call connectors during task execution to read from or write to external systems (e.g. pulling data from Google Sheets, creating issues in Linear, posting updates to Slack).
Use in Agent Workflows
Connected services are especially powerful when combined withnut code or other agent-driven commands. An agent can leverage connectors to:
- Pull context from tools like Notion, Confluence, or Google Docs before implementing a task
- Push results to Slack, email, or project management tools when work is complete
- Read and write data from CRMs, databases, or storage services as part of automated pipelines
Troubleshooting
'Unauthorized' or 'missing token' error
'Unauthorized' or 'missing token' error
Service not appearing in list
Service not appearing in list
The service must be connected on the Coconut Dashboard first. Visit the Control Plane, navigate to your instance’s connector settings, and authorize the service.
Request returns an unexpected error from the service
Request returns an unexpected error from the service
Double-check the API path and method against the service’s own documentation.
nut connect proxies your request as-is — the error is coming from the upstream API.Connector availability and supported services depend on your Coconut plan and the integrations enabled on the Dashboard.