npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

opencode-oci-provider

v0.3.0

Published

OCI GenAI provider for OpenCode with setup wizard (AI SDK V2 compatible)

Downloads

15

Readme

 ██████╗ ██████╗ ███████╗███╗   ██╗ ██████╗ ██████╗ ██████╗ ███████╗
██╔═══██╗██╔══██╗██╔════╝████╗  ██║██╔════╝██╔═══██╗██╔══██╗██╔════╝
██║   ██║██████╔╝█████╗  ██╔██╗ ██║██║     ██║   ██║██║  ██║█████╗  
██║   ██║██╔═══╝ ██╔══╝  ██║╚██╗██║██║     ██║   ██║██║  ██║██╔══╝  
╚██████╔╝██║     ███████╗██║ ╚████║╚██████╗╚██████╔╝██████╔╝███████╗
 ╚═════╝ ╚═╝     ╚══════╝╚═╝  ╚═══╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝
 ██████╗  ██████╗██╗    ██████╗ ██████╗  ██████╗ ██╗   ██╗██╗██████╗ ███████╗██████╗ 
██╔═══██╗██╔════╝██║    ██╔══██╗██╔══██╗██╔═══██╗██║   ██║██║██╔══██╗██╔════╝██╔══██╗
██║   ██║██║     ██║    ██████╔╝██████╔╝██║   ██║██║   ██║██║██║  ██║█████╗  ██████╔╝
██║   ██║██║     ██║    ██╔═══╝ ██╔══██╗██║   ██║╚██╗ ██╔╝██║██║  ██║██╔══╝  ██╔══██╗
╚██████╔╝╚██████╗██║    ██║     ██║  ██║╚██████╔╝ ╚████╔╝ ██║██████╔╝███████╗██║  ██║
 ╚═════╝  ╚═════╝╚═╝    ╚═╝     ╚═╝  ╚═╝ ╚═════╝   ╚═══╝  ╚═╝╚═════╝ ╚══════╝╚═╝  ╚═╝

OCI GenAI provider for OpenCode with interactive setup wizard

License: MIT OpenCode Compatible Node 18+ Community Project

⚠️ Independent Community Project — This project has no official affiliation with Oracle Corporation or the OpenCode team. It is a community-built integration that enables OpenCode to work with OCI GenAI services.

Quick Start

1. Run Setup Wizard

npx opencode-oci-provider
# or after installation:
opencode-oci-setup

The wizard will:

  • Detect your OCI config profiles
  • Let you select a region (with xAI availability indicators)
  • Configure compartment ID
  • Choose between On-Demand or Dedicated AI Cluster
  • Select a model or endpoint
  • Test the configuration
  • Generate opencode.json and .env.oci-genai files

2. Use with OpenCode

After setup, your opencode.json will be configured. Start OpenCode:

opencode

Manual Configuration

If you prefer manual setup:

Environment Variables

export OCI_REGION=us-chicago-1
export OCI_COMPARTMENT_ID=ocid1.compartment.oc1..xxxxx
export OCI_CONFIG_PROFILE=DEFAULT
# For dedicated mode:
# export OCI_GENAI_ENDPOINT_ID=ocid1.generativeaiendpoint.oc1..xxxxx

opencode.json

{
  "provider": {
    "oci": {
      "npm": "opencode-oci-provider",
      "name": "Oracle Cloud Infrastructure",
      "options": {
        "region": "us-chicago-1",
        "compartmentId": "${OCI_COMPARTMENT_ID}"
      },
      "models": {
        "cohere.command-r-plus-08-2024": {
          "name": "Cohere Command R+",
          "type": "chat"
        }
      }
    }
  }
}

Available Models

On-Demand Models

| Provider | Model ID | Notes | |----------|----------|-------| | Cohere | cohere.command-a-03-2025 | Latest Cohere model | | Cohere | cohere.command-a-reasoning-08-2025 | With reasoning | | Cohere | cohere.command-r-plus-08-2024 | Balanced quality | | Google | google.gemini-2.5-flash | Fast, multimodal | | Google | google.gemini-2.5-pro | Best Google quality | | xAI | xai.grok-4-1-fast-reasoning | US regions only, with reasoning | | xAI | xai.grok-4-1-fast-non-reasoning | US regions only, fastest | | xAI | xai.grok-code-fast-1 | US regions only, coding-focused | | Meta | meta.llama-3.3-70b-instruct | Latest Llama | | Meta | meta.llama-3.1-405b-instruct | Largest Llama | | OpenAI | openai.gpt-oss-120b | OpenAI compatible |

Region Availability

  • US regions (us-chicago-1, us-ashburn-1, us-phoenix-1, us-sanjose-1): All providers including xAI
  • Other regions: Cohere, Google, Meta (no xAI)

Dedicated AI Clusters

For production workloads, you can use Dedicated AI Clusters:

  1. Create a cluster in the OCI Console
  2. Create an endpoint on the cluster
  3. Run opencode-oci-setup and select "Dedicated AI Cluster"
  4. Choose your cluster and endpoint

Prerequisites

Troubleshooting

"Missing compartment ID"

Set OCI_COMPARTMENT_ID environment variable or pass it in options.

"Authentication failed"

Verify your OCI CLI is configured: oci iam region list

"Model not available in region"

xAI models are only available in US regions (us-chicago-1, us-ashburn-1, us-phoenix-1, us-sanjose-1). Use Cohere, Google, or Meta models in other regions.

xAI Grok Reasoning

xAI Grok models control reasoning through model variant selection, not API parameters:

  • xai.grok-4-1-fast-reasoning — With extended thinking
  • xai.grok-4-1-fast-non-reasoning — Standard (faster)
  • xai.grok-3-mini / xai.grok-3-mini-fast — Compact models that think before responding

Legal

Independent Project — This is a community project with no affiliation to Oracle Corporation or the OpenCode team. "OCI" and "Oracle Cloud Infrastructure" refer to compatibility with Oracle's services, not endorsement by Oracle. "OpenCode" refers to compatibility with the OpenCode CLI tool.

License — MIT

Disclaimer — This software is provided "as is" without warranty. The authors and Oracle Corporation bear no liability for damages arising from its use. You are responsible for compliance with all applicable laws and Oracle's terms of service.


Created by Alexander Cedergren