How to use with OpenCode
Connect OpenCode to your Awaken account through the remote MCP server, either by signing in with OAuth or with an API key.
Watch a quick demo on how it works
Before you begin
Awaken API access requires a Dolphin or Whale plan.
There are two ways to connect OpenCode. OAuth is the default: you sign in to Awaken in your browser and no key is copied anywhere. Alternatively, OpenCode can send an API key in an explicit Authorization header.
Option A: add the server and sign in
Add Awaken to opencode.json in your project, or to ~/.config/opencode/opencode.json to use it in every project.
{"$schema": "https://opencode.ai/config.json","mcp": {"servers": {"awaken": {"type": "remote","url": "https://mcp.awaken.tax/mcp"}}}}
Sign in to Awaken
Awaken accepts OpenCode's published client identity (https://opencode.ai/oauth/opencode/client.json). Setting oauth.client_id or oauth.redirect_uri on the server entry makes OpenCode present a different identity, which Awaken rejects; remove those fields or use Option B.
1. Start sign-in
Run opencode mcp auth awaken in your terminal, or open OpenCode, run /mcps, select awaken, and choose to sign in.
2. Sign in to Awaken
OpenCode opens Awaken in your browser. Sign in with the account that has access to the workspace you want to connect.
3. Choose a client and scope
The consent page shows opencode.ai as the requesting app. Pick the Awaken client OpenCode may access and allow read only or read + write, then approve. OpenCode receives a token scoped to that client and refreshes it automatically.
Option B: use an API key
Do not commit the key or paste it into chat. If it is exposed, expired, or no longer needed, revoke it from Settings → API Keys and create a replacement.
1. Open API Keys
In the Awaken workspace you want to connect, open Settings → API Keys and select Create API Key.
2. Choose access
Give the key a recognizable name, choose Read for analysis or Read + Write only when OpenCode should edit data, and optionally set an expiration.
3. Copy the secret and client ID
Copy the awaken_… secret when it appears; for security, it cannot be viewed again. Also copy the client ID shown on the API Keys page. The key is scoped to that client only.
Set the environment variables
Replace YOUR_API_KEY and YOUR_CLIENT_ID with the values from the API Keys page. OpenCode reads these variables from its own environment when it starts, so add them to your shell profile and launch OpenCode from a new terminal. Exporting them from inside a running OpenCode session has no effect on that session.
export AWAKEN_API_KEY="YOUR_API_KEY"export AWAKEN_CLIENT_ID="YOUR_CLIENT_ID"
Add the server with headers
The config references the variables instead of containing the key, so opencode.json stays safe to commit. Setting oauth to false tells OpenCode to use the header and skip browser sign-in.
{"$schema": "https://opencode.ai/config.json","mcp": {"servers": {"awaken": {"type": "remote","url": "https://mcp.awaken.tax/mcp","oauth": false,"headers": {"Authorization": "Bearer {env:AWAKEN_API_KEY}","x-client-id": "{env:AWAKEN_CLIENT_ID}"}}}}}
Verify the connection
Run opencode mcp list to confirm that the awaken server shows as connected. Then start a new OpenCode session and ask it to use Awaken.
Review
Show my largest taxable events this year and flag anything missing cost basis.
Clean up
Find my unreviewed transactions, explain the likely labels, and ask before changing anything.
Reports
Generate my Form 8949 report for 2025 and tell me when it is ready.