opencode

Connect OpenCode to GitHub and PostgreSQL

Hand OpenCode a GitHub connection and a Postgres database and it can reason across your code and your live data at the same time. It runs queries to understand what the schema and rows actually contain, then makes matching changes in the repo and opens a pull request. This is how a coding agent stops guessing at the data layer and works from the real database.

Loading preview…
Opens a workflow with 246 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.

GitHub

206 tools
Get Repository

Get information about a repository

List Authenticated User Repos

List repositories for the authenticated user

List Org Repos

List repositories for an organization

Fork Repository

Fork a repository

List Repo Collaborators

List collaborators for a repository

Create Repo Webhook

Create a webhook for a repository

List Repo Forks

List forks of a repository

List Repo Contributors

List contributors to a repository

Get Repo Languages

Get languages used in a repository

Get Repo Topics

Get topics for a repository

Set Repo Topics

Set topics for a repository

List Repo Stargazers

List stargazers for a repository

Star Repository

Star a repository

Unstar Repository

Unstar a repository

List Repo Directory Contents

List contents of a directory in a repository

Create Repo from Template

Create a repository from a template

List User Repos

List repositories for a specific user

List Issues

List issues for a repository

Get Issue

Get a specific issue

Create Issue

Create a new issue

Update Issue

Update an existing issue

List Issue Comments

List comments on an issue

Create Issue Comment

Create a comment on an issue or pull request

Add Labels to Issue

Add labels to an issue

Create Reaction on Issue

Add a reaction to an issue

List Milestones

List milestones for a repository

Create Milestone

Create a milestone

List Issue Assignees

List available assignees for a repository

List Pull Requests

List pull requests for a repository

Get Pull Request

Get a specific pull request

Create Pull Request

Create a new pull request

Update Pull Request

Update an existing pull request

Merge Pull Request

Merge a pull request

List Pull Request Files

List files changed in a pull request

Request Pull Request Reviewers

Request reviewers for a pull request

List Pull Request Reviews

List reviews on a pull request

Create Pull Request Review

Create a review on a pull request

List Commits

List commits in a repository

Get Commit

Get a specific commit

Compare Commits

Compare two commits

List Commit Check Runs

List check runs for a git reference

List Branches

List branches in a repository

Create Branch

Create a new branch

Delete Branch

Delete a branch

List Repo Tags

List tags in a repository

Get File Contents

Get the contents of a file

Create or Update File

Create or update a file in a repository

Delete File

Delete a file from a repository

List Releases

List releases for a repository

Get Release

Get a specific release

Create Release

Create a new release

List Repo Labels

List labels for a repository

Create Label

Create a label

Get Authenticated User

Get the authenticated user

Get User

Get a specific user

List User Followers

List followers of a user

List User Following

List users followed by a user

List Workflow Runs

List workflow runs for a repository

List Workflows

List workflows in a repository

Get Workflow Run

Get a specific workflow run

Trigger Workflow Dispatch

Trigger a workflow dispatch event

Cancel Workflow Run

Cancel a workflow run

Rerun Workflow

Re-run a workflow

List Deployments

List deployments for a repository

Create Deployment

Create a deployment

List Notifications

List notifications for the authenticated user

Mark Notifications As Read

Mark notifications as read

List Org Teams

List teams in an organization

List Org Members

List members of an organization

List Authenticated User Gists

List gists for the authenticated user

Get Gist

Get a specific gist

Create Gist

Create a new gist

Search Issues

Search issues and pull requests

Search Code

Search code across repositories

Search Repositories

Search repositories

List Pull Request Review Comments

List review comments on a pull request

Create Pull Request Review Comment

Create a review comment on a pull request

Get Pull Request Review Comment

Get a specific review comment

Update Pull Request Review Comment

Update a review comment

Delete Pull Request Review Comment

Delete a review comment

Reply to Pull Request Review Comment

Reply to a review comment

Update Pull Request Review

Update a pending review

Delete Pending Pull Request Review

Delete a pending review

List Review Comments for Review

Get comments for a specific review

Submit Pull Request Review

Submit a pending review

Dismiss Pull Request Review

Dismiss a review

List Pull Request Commits

List commits on a pull request

Check Pull Request Merged

Check if a pull request has been merged

Update Pull Request Branch

Update pull request branch with latest base branch

Update Repository

Update repository settings

Delete Repository

Delete a repository

Create Repo for Authenticated User

Create a repository for the authenticated user

Transfer Repository

Transfer repository ownership

Lock Issue

Lock an issue conversation

Unlock Issue

Unlock an issue conversation

Get Issue Comment

Get a specific issue comment

Update Issue Comment

Update an issue comment

Delete Issue Comment

Delete an issue comment

Get Label

Get a label

Update Label

Update a label

Delete Label

Delete a label

Set Issue Labels

Set labels for an issue (replaces all)

Remove All Labels from Issue

Remove all labels from an issue

Remove Label from Issue

Remove a label from an issue

Get Milestone

Get a milestone

Update Milestone

Update a milestone

Delete Milestone

Delete a milestone

Update Release

Update a release

Delete Release

Delete a release

Get Latest Release

Get the latest release

Get Release by Tag

Get a release by tag name

Generate Release Notes

Generate release notes

List Release Assets

List release assets

Get Release Asset

Get a release asset

Update Release Asset

Update a release asset

Delete Release Asset

Delete a release asset

Update Gist

Update a gist

Delete Gist

Delete a gist

List Public Gists

List public gists

List Starred Gists

List starred gists

Star Gist

Star a gist

Unstar Gist

Unstar a gist

Check Gist Starred

Check if a gist is starred

Fork Gist

Fork a gist

List Gist Forks

List gist forks

List Gist Commits

List gist commits

Get Gist Revision

Get a specific gist revision

List User Gists

List gists for a user

List Branches by Head Commit

List branches where commit is the HEAD

List Pull Requests by Commit

List pull requests associated with a commit

List Commit Comments

List comments for a commit

Create Commit Comment

Create a comment on a commit

Create Commit Status

Create a commit status

Get Repo Webhook

Get a repository webhook

Update Repo Webhook

Update a repository webhook

Delete Repo Webhook

Delete a repository webhook

Ping Repo Webhook

Ping a repository webhook

Test Repo Webhook

Test a repository webhook

List Webhook Deliveries

List webhook deliveries

Get Webhook Delivery

Get a webhook delivery

Redeliver Webhook

Redeliver a webhook

Add Repo Collaborator

Add a repository collaborator

Remove Repo Collaborator

Remove a repository collaborator

Get User Repo Permissions

Get repository permissions for a user

Check User Is Collaborator

Check if a user is a collaborator

List Repo Invitations

List repository invitations

Update Repo Invitation

Update a repository invitation

Create Team

Create a team

Get Team

Get a team

Update Team

Update a team

Delete Team

Delete a team

List Team Repos

List team repositories

Check Team Repo Permissions

Check team permissions for a repository

Add or Update Team Repo Permissions

Add or update team repository permissions

Remove Repo from Team

Remove a repository from a team

List Team Members

List team members

Get Team Membership

Get team membership for a user

Get Organization

Get an organization

Update Organization

Update an organization

List Org Repos Alias

List organization repositories (alias)

Create Org Repository

Create an organization repository

List Org Invitations

List organization invitations

Cancel Org Invitation

Cancel an organization invitation

List Org Members Alias

List organization members (alias)

Check Org Membership

Check organization membership

Remove Org Member

Remove an organization member

Get Org Membership

Get organization membership for a user

Add or Update Org Membership

Add or update organization membership

Remove Org Membership

Remove organization membership

List Pending Org Invitations

List pending organization invitations (alias)

List Org Webhooks

List organization webhooks

Create Org Webhook

Create an organization webhook

List Deployment Statuses

List deployment statuses

Create Deployment Status

Create a deployment status

Get Deployment Status

Get a deployment status

Get Deployment

Get a deployment

Delete Deployment

Delete a deployment

List Issue Reactions

List reactions for an issue

Delete Issue Reaction

Delete an issue reaction

List Issue Comment Reactions

List reactions for an issue comment

Create Reaction on Issue Comment

Create a reaction for an issue comment

Delete Issue Comment Reaction

Delete an issue comment reaction

List Commit Comment Reactions

List reactions for a commit comment

Create Reaction on Commit Comment

Create a reaction for a commit comment

Delete Commit Comment Reaction

Delete a commit comment reaction

List Pr Review Comment Reactions

List reactions for a PR review comment

Create Reaction on Pr Review Comment

Create a reaction for a PR review comment

Delete Pr Review Comment Reaction

Delete a PR review comment reaction

List Release Reactions

List reactions for a release

Create Reaction on Release

Create a reaction for a release

Delete Release Reaction

Delete a release reaction

List Workflow Run Artifacts

List workflow run artifacts

List Repo Artifacts

List repository artifacts

Get Artifact

Get an artifact

Delete Artifact

Delete an artifact

Download Artifact

Download an artifact

Delete Workflow Run

Delete a workflow run

Get Workflow Run Usage

Get workflow run usage

Download Workflow Run Logs

Download workflow run logs

Delete Workflow Run Logs

Delete workflow run logs

List Workflow Run Jobs

List jobs for a workflow run

Get Workflow Run Attempt

Get a workflow run attempt

List Workflow Run Attempt Jobs

List jobs for a workflow run attempt

Download Workflow Run Attempt Logs

Download logs for a workflow run attempt

Approve Workflow Run

Approve a workflow run

List Workflow Run Pending Deployments

List pending deployments for a workflow run

PostgreSQL

40 tools
Run Select Query

Execute a SELECT query and return results as JSON

Execute Sql Statement

Execute an INSERT, UPDATE, DELETE, or other non-SELECT statement

Execute Batch Statements

Execute a statement with multiple parameter sets (batch operations)

Run Query with Cursor

Execute query with cursor for large result sets

Copy Data to Table

Bulk import data to a table using COPY

Copy Data from Table

Bulk export data from a table using COPY

List Schema Tables

List all tables in a schema

List Table Columns

Get column metadata for a table

Get Table Info

Get detailed information about a table including constraints and indexes

Create Table

Create a new table

Drop Table

Drop a table

Truncate Table

Truncate a table (remove all rows)

List Schemas

List all schemas in the database

Create Schema

Create a new schema

Drop Schema

Drop a schema

List Databases

List all databases in the PostgreSQL server

List Schema Indexes

List all indexes in a schema

Create Index

Create an index on a table

Drop Index

Drop an index

List Schema Views

List all views in a schema

Create View

Create a view

Drop View

Drop a view

List Schema Sequences

List all sequences in a schema

Get Sequence Next Value

Get the next value from a sequence (nextval)

Get Sequence Current Value

Get the current value from a sequence (currval)

Set Sequence Value

Set the current value of a sequence (setval)

List Schema Functions

List all functions in a schema

Call Database Function

Call a PostgreSQL function

List Table Constraints

List all constraints for a table

List Schema Triggers

List all triggers in a schema

List Extensions

List all installed extensions

Install Extension

Create/install an extension

List Database Users

List all database users

List Database Roles

List all database roles

Explain Query Plan

Explain a query's execution plan

Vacuum Table

Vacuum a table to reclaim storage and update statistics

Analyze Table Statistics

Analyze a table to update statistics

Begin Transaction

Begin a new transaction

Commit Transaction

Commit the current transaction

Rollback Transaction

Rollback the current transaction

What you can build

Query a table's schema in Postgres, then update the matching model or migration in the repo and open a PR
Investigate a bug by running diagnostic SELECTs and cross-checking the relevant code paths
Generate a data report from Postgres and commit it as a markdown file in the repo
Validate that a code change matches the live schema by querying tables before opening the PR

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 GitHub and PostgreSQL wired in as tools. Connect your account and run.