opencode

Connect OpenCode to Upstash Vector

Give an AI agent your Upstash Vector database as a tool and it can build and query its own memory while it works. It can upsert vectors or plain text, search by vector or by text, fetch and list stored records, update metadata, and reset a namespace, calling each as a tool instead of asking you to run them. Wire it into a coding agent in NoClick and it can index documents, then pull back the right context on its own before it answers.

Loading preview…
Opens a workflow with 11 tools ready to use.

Tools OpenCode gets

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

Upstash Vector

11 tools
Query / Search

Find the most similar vectors to a query vector.

Query by Text

Search by text — Upstash embeds the text server-side (requires an embedding-enabled database).

Upsert Vectors

Insert or overwrite vectors.

Upsert Text

Insert text records — Upstash embeds them server-side (requires an embedding-enabled database).

Fetch Vectors

Fetch vectors by ID.

Delete Vectors

Delete vectors by ID.

Database Info

Get database stats (vector count, dimension, similarity function).

Reset Namespace

Delete all vectors from a namespace (or the entire index if no namespace given).

List Vectors (Range)

Scroll / paginate through all vectors in a namespace using a cursor.

Update Vector Metadata

Update the metadata and/or data field of an existing vector without re-supplying the embedding.

Upload & Index Document

Upload a document, chunk it, and index it with server-side embedding.

What you can build

When a new support document lands, upload and index it into Upstash Vector so later questions can be answered from its contents.
On each incoming question, run a query by text and pass the top matches to an AI step for a grounded, cited answer.
When a record changes upstream, upsert its text or embedding so search results stay current with your source data.
Nightly, list vectors in a namespace and delete the stale ones to keep the index lean.
Whenever a document is retagged, update its vector metadata so metadata-filtered searches return the right subset.
Before a fresh reindex, reset a namespace to clear it, then upsert the new batch of text in the same run.

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

Open your OpenCode agent in one click

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