What can opencode do with Probably?
opencode can start a UGC video ad in Probably from a brief, follow its progress, ask for changes, make variants and share the delivered video, from the terminal.
opencode doesn't film anything itself. It talks to Probably's AI creative crew through the MCP server and reports what the crew did.
Add the server
Add Probably to opencode.json in your project, or to ~/.config/opencode/opencode.json for every project: {"$schema": "https://opencode.ai/config.json", "mcp": {"probably": {"type": "remote", "url": "https://studio.probably.co/api/mcp", "enabled": true}}}
Sign in
Run: opencode mcp auth probably. opencode finds Probably's sign-in by itself and registers with it, so the file needs no client ID. Your browser opens Probably's sign-in and a consent page, where you choose the organization, optionally one Space, and whether opencode may start paid work after you confirm it in the chat.
Ask for a video
Ask opencode to list your Probably Spaces, then to prepare a video from a brief. It shows you the preview before anything is spent.
opencode mcp list shows whether you are signed in, and opencode mcp logout probably signs out. These keys and commands were checked against opencode's MCP server documentation on 25 October 2026. The full steps are in the opencode quickstart.
Can you use an API key instead of signing in?
Yes. Create a key in Settings, Connections and put it in PROBABLY_API_KEY. In the entry, add headers with {"Authorization": "Bearer {env:PROBABLY_API_KEY}"} and set oauth to false, so opencode reads the key from your environment and starts no sign-in. A key that may spend must be limited to one Space with a spend cap. See authentication.
“List my Probably Spaces, then prepare a 15-second TikTok for our reef-safe sunscreen in the Trail Space.”
“Show me the preview. If I say go, confirm it and wait until it's delivered.”
“Make three variants with different hooks and give me the share links.”
Which tools does Probably's MCP server offer?
The app can read your Spaces and videos, prepare and revise ads, steer the crew, answer a video's storyboard and voice check-ins, approve and share deliveries; only confirm_spend and fix_word start paid work.
An app is offered the tools its permissions cover: reading, making changes, and starting paid work. Every tool, with its inputs, is in the MCP tool reference.
| Job | Tools | Permission |
|---|---|---|
| Look around | list_spaces, list_videos, get_video, wait_for_video, get_media, get_credits, list_formats, list_personas, list_products, list_assets, read_link | Read |
| Make a video | prepare_video, prepare_variants, prepare_regenerate, prepare_apply_change | Make changes |
| Do one stage on its own | research, brainstorm, write_script, review, generate_clip, voice, get_stage | Make changes |
| Steer the crew | send_message, approve_delivery, stop_video, discard_change, withdraw_instruction, send_instruction_now | Make changes |
| Answer check-ins | approve_storyboard, skip_storyboard, approve_listen, skip_listen, keep_word | Make changes |
| Share a delivered video | share_video, revoke_share | Make changes |
| Keep a brand's facts | create_space, save_persona, save_product, begin_upload, complete_upload | Make changes |
| Start paid work | confirm_spend, fix_word | Spend |
Does the agent spend my credits on its own?
No. Paid work is prepared first, shown to you with its cost, and started only by a separate confirm_spend call after you agree.
Prepare
A prepare tool, or a stage such as research, answers with a preview and a confirmation. Nothing is spent.
Look at the preview
It says whether your credits cover the work, or the cap a stage can charge, and whether it uses the free first draft.
Confirm
Once you agree, the app calls confirm_spend. It starts exactly the work the preview showed. Confirming twice starts it once.
A connection that may not spend still prepares work. Its answer carries a link to a page in the studio where you see the same preview and confirm it yourself. Whichever you choose when you connect, the same credits, spend caps and free first draft apply as in the studio. See spend confirmations.
Confirmations expire, so a stale preview never spends. Names, briefs and messages reach the app as content, not instructions, and nothing anyone writes can confirm a spend. Revoke a connection any time in Settings, Connections; its next call is refused.
Frequently asked questions
Can opencode make video ads?
opencode writes and steers; Probably makes the video. Add Probably as a remote MCP server and opencode can start a UGC video ad from a brief, follow it and revise it, with the crew doing the filming and editing. It asks you before it spends.
How do I sign in to Probably from opencode?
Run opencode mcp auth probably and sign in in your browser. Or send an API key in the entry's headers with oauth set to false, where nobody can open a browser.
Can opencode spend my credits without asking?
No. Every paid step is prepared first and shown to you, and only confirm_spend starts it, after you agree. Without the spend permission, you confirm in the studio instead. See spend confirmations.
Does connecting opencode cost anything?
Connecting is free. Work the app starts uses your credits, as in the studio, and your first draft is free with a new account; see pricing.
How do I disconnect opencode?
Revoke the connection in Settings, Connections. Its next call is refused, and an admin can revoke any member's connection.
Updated









