opencode

Connect OpenCode to PromptLayer

Run OpenCode as a hosted agent in NoClick with PromptLayer wired into its tools handle. It can use PromptLayer directly while it works. No glue code, nothing to install. Click below to open a ready-to-run agent and connect your account.
Loading preview…
Opens a workflow with 25 tools ready to use.

Set up in minutes

The open button drops you into a guided setup. It asks exactly this, nothing else:
  1. Choose where it runs

    On your computer through your own OpenCode, or hosted in the cloud. The rest of setup adapts to your choice:

  2. Pick what it can do in PromptLayer

    A preset of real PromptLayer operations. Each one becomes a tool the agent can call, and it can't touch anything outside the list.

  3. Connect PromptLayer

    One sign-in. The agent acts through your account, scoped to the operations you picked.

  4. Add your personal MCP link

    The last step mints a private MCP URL for this agent and walks you through exactly this, with your real link filled in. The page flips to Connected the moment your OpenCode first calls in. opencode mcp add only saves the config. OpenCode connects when it starts — run opencode, or restart a running one.

    1. Run this in your terminal

    $opencode mcp add

    2. Choose Remote and paste your server URL

    https://mcp.noclick.app/s/<your-link>

    3. Choose No when asked about OAuth authentication — the link itself is the key

    <your-link> is your personal server URL — setup mints it for you.

Tools OpenCode gets

Pick the operations you want and each becomes a tool the agent can call directly while it works.

PromptLayer

25 tools
List Workflows

List workspace AI workflows and retain provider pagination.

Get Prompt

Get raw chat or completion content and version metadata.

Render Prompt

Retrieve a template with input variables applied; does not run an LLM.

Publish Prompt

Publish a new prompt or version, optionally moving release labels to it.

Patch Prompt

Create a version from a base version or label, replacing selected fields.

List Labels

List release labels for one prompt.

Create Label

Create a release label pointing to a prompt version.

Move Label

Move an existing release label to a different version.

Delete Label

Delete a release label without deleting its prompt.

Track Metadata

Associate custom metadata with a logged request.

Track Score

Track a named or default score from 0 to 100.

Track Prompt

Associate a request with a prompt and its input variables.

Get Request

Read a logged request's prompt, usage, timing and cost.

Get Trace

Read the spans belonging to a trace.

List Tables

List tables in the key's workspace, retaining the next cursor.

Create Table

Create a table, optionally including a default sheet and text column.

Get Table

Read a table and its sheet metadata.

List Sheets

List sheets belonging to one table.

Create Sheet

Create a blank sheet with the provider's default text column scaffold.

Get Sheet

Read sheet details and version count.

List Rows

Read one page of rows with optional column and execution metadata.

Add Rows

Append rows; computed cells remain stale until explicitly recalculated.

Recalculate Sheet

Queue recalculation; preserve any confirmation request instead of approving it automatically.

Get Sheet Operation

Poll a queued sheet recalculation without starting another run.

Get Sheet Score

Read aggregate and per-column scores and calculation status.

About OpenCode

OpenCode is an open, model-agnostic command-line coding agent. In NoClick it runs hosted and gains your apps as tools, so it can act on real systems rather than just edit files. Wire an integration into the agent and OpenCode can use that app’s operations directly while it works. It is a flexible choice when you want an open agent with broad model support and real tool access.
Open and model-agnostic
Flexible across many underlying models
Good general-purpose tool use
Lightweight to point at a focused task

Frequently asked questions

More ways to connect

Open your OpenCode agent in one click.

NoClick runs OpenCode for you with PromptLayer wired in as tools. Connect your account and run.