Urgent.News

What's breaking now, across hundreds of outlets.

AI

Using OpenCode With Any OpenAI-Compatible API (2026 Setup Guide)

OpenCode is an open-source terminal coding agent: it reads a repository, plans edits, calls tools and streams changes back to the terminal. Under the hood it needs three things from a provider — a base URL, a bearer key and a model id — plus reliable streaming and tool calling. I work on API Volta , an OpenAI-compatible gateway, so this guide uses it as the example endpoint. The same provider…

OpenCode is an open-source terminal coding agent that plans edits, calls tools, and streams changes back to the terminal. To use OpenCode with any OpenAI-compatible API, follow these steps:

1. Create an API key by signing up, opening the console, and adding a key. Store the key in a local secret manager or shell environment. Do not commit the key to a repository.

2. Incorporate the provider block into OpenCode's configuration file, opencode.json. This file should be located at the repository root or in the global config location used by your OpenCode version. The provider block includes the base URL, model identifier, and other options.

3. Authenticate OpenCode using the opencode auth login command. Choose the custom/other provider option, enter the provider ID (apivolta), and paste your API key.

4. Select a coding alias for your task. Each alias has specific performance metrics and pricing. Examples include MiniMax-M3.1-Flash, DeepSeek-V4-Flash, Kimi-K2.6, DeepSeek-V4-Pro, and GLM-5.3.

5. Before starting a long session, perform five checks to ensure optimal performance. These include single-file edits, multi-file renames, shell command recovery, ambiguous requests, and long-context tasks near the model's window.

The cost of a task depends on the chosen model. For instance, a 200k-input + 30k-output task costs approximately $0.032 on MiniMax-M3.1-Flash, $0.047 on DeepSeek-V4-Flash, $0.174 on DeepSeek-V4-Pro, and $0.376 on Kimi-K2.7-Code. Input tokens primarily influence the agent's billing, so a cheaper model with slightly more retries may still be more economical. OpenAI-compatible API Volta offers a prepaid Pay-As-You-Go option with a 30-day Memberships and Unlimited Day Pass for additional flexibility.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

How to brief an AI video model: the six lines that decide the render

Short answer: a good AI video brief has six lines — subject, timed action, camera, light, sound, and what must not appear.

  • Subject, timed action, camera, light, sound, and restrictions are six lines of AI video brief.
  • Each line addresses a specific aspect of the scene separately to avoid invented details.
  • Reviewing the brief ensures clear, singular directives before rendering to save time and money.

AI product video for e-commerce: what a 10-second clip really costs

Short answer: a ten-second 720p product clip costs 120 credits — about $1.05 on a monthly plan — and a ninety-SKU catalogue of ten-second clips costs roughly 10,800 credits, about $95.

  • 10-second AI-generated product videos cost $1.05 per month for 90 SKUs.
  • Human involvement needed for label typography and compliance shots.
  • 720p tier sufficient for feed video; 1080p not required unless placement demands it.

Let's Build an Open-Source Coding Intelligence Project Together

Hey Necoz Community! After our recent discussions about improving coding models, I have an idea that I'd like to turn into a real open-source project.

  • Necoz Community invites collaboration for open-source coding intelligence project
  • Qwen3-Coder-Next foundation model to be enhanced with compiler-aware coding
  • Project seeks contributors for research, testing, and improvements

In first, IDF and US military hold joint cyber defense drill integrating artificial intelligence

According to an IDF statement, more than 100 cyber experts from units in both militaries took part in the exercise, which was held at a dedicated cyber facility in the US.

  • IDF and US military conduct first joint cyber defense drill using AI.
  • Over 100 cyber experts from both branches participate in 11 "CyberDome" exercises.
  • AI integration aims to enhance defense strategies against evolving cyber threats.

Rocket, an Indian rival to Lovable and Replit, is shutting down

Backed by Accel and Salesforce Ventures, Rocket says it was left with just months of runway after investors canceled a planned funding round.

  • Indian AI startup Rocket to shut down by end of December
  • Funding round canceled due to CEO's medical condition and financial discrepancies
  • Rocket had 400,000 users and $4.5M ARR when decision made

More from Sunday, 29 November 2026 →