Integration guide

How to use novita ai opencode for a focused code edit

A novita ai opencode setup is useful when you want OpenCode to request model assistance while you stay in control of the repository. Start with one bounded task, then check the proposed changes and run the relevant tests.

Novita landing visual

The audience's existing pipeline

Your work already moves from a request to an edit, a diff, and a test. Adding a provider should change where OpenCode gets model responses, not remove those review steps.

Separate model request

Illustration of a standalone AI workflow
Illustration associated with an OpenCode integration workflow
Model assistance in OpenCode

These images illustrate the workflow distinction; they are not screenshots of a verified configuration. In either approach, inspect the diff before accepting an edit.

Where we slot in

Novita belongs at the model-provider step. OpenCode remains the place where you describe the task and examine the proposed repository changes.

Application developer

Ask OpenCode to add a validation check to one existing function. Give it the file path and expected behavior, then keep the request narrow enough to review in a single diff.

The useful result is a proposed edit plus a test you can run locally. For a closer look at the model side of this arrangement, see the related LLM overview.

novita llm

Integration maintainer

Use OpenCode to trace a failing response through a client wrapper, propose a small fix, and identify which test exercises that path.

Treat the model response as a hypothesis until the test passes. The inference overview explains the separate role of the request-and-response service.

novita inference

Model evaluator

Give OpenCode the same contained refactor with each provider you are evaluating. Compare the resulting diffs against one set of acceptance criteria.

Record what changed, what tests ran, and where manual edits were needed. The Hugging Face page covers another channel for discovering Novita model options.

novita ai hugging face

Before and after

This comparison describes the handoff, not a promise that any model will produce a correct patch. Verify the available provider settings in the current OpenCode documentation.

Separate model conversation OpenCode with Novita as provider
1

Task context

Separate model conversation

You copy relevant code into a separate request and explain how the pieces fit.

OpenCode with Novita as provider

You describe the task in OpenCode and check what repository context it sends.

2

Model request

Separate model conversation

You submit the prompt through an independent interface.

OpenCode with Novita as provider

OpenCode sends the request through the provider configuration you selected.

3

Suggested change

Separate model conversation

You transfer suggested code into the repository yourself.

OpenCode with Novita as provider

You inspect the proposed repository edit before deciding whether to keep it.

4

Review surface

Separate model conversation

You compare pasted suggestions with the original files.

OpenCode with Novita as provider

You review the diff for scope, behavior, and unintended changes.

5

Verification

Separate model conversation

You run the relevant checks after applying the edit.

OpenCode with Novita as provider

You still run the relevant checks after reviewing the edit.

6

Sensitive context

Separate model conversation

You decide what to paste into the external conversation.

OpenCode with Novita as provider

You inspect project context and avoid sending secrets or unnecessary files.

7

Final decision

Separate model conversation

You decide whether the manually applied change is ready.

OpenCode with Novita as provider

You decide whether the reviewed diff and test results are acceptable.

Deliverable spec

Try one bounded OpenCode task

Choose a small, reversible change with a clear expected result: for example, add a missing edge-case test for an existing function. Check the current OpenCode provider instructions before configuring Novita, and select a model supported by your setup. A useful deliverable is a readable diff, a brief account of why the change was made, and the output of the relevant test. If the edit touches unrelated files or the test fails, revise the request rather than accepting the patch.

  • Name the file and expected behavior.
  • Review every proposed change.
  • Run the relevant test before keeping the edit.

Scenario FAQ

Check OpenCode's current provider instructions and confirm that your intended Novita model can be selected through the supported configuration path. Integration details can change, so use the current documentation rather than copying an unverified setting from an older guide. Start with a small test request before working on a repository.

That depends on the workflow and permissions you choose in OpenCode. Read its proposed actions, inspect the resulting diff, and keep only changes that match your request. Treat a model-generated patch as a suggestion, not an automatically verified fix.

Choose a contained change with an observable outcome, such as adding a test for a known edge case. State the file, the expected behavior, and any constraints on the edit. A narrow task makes the diff easier to review and the result easier to verify.

Read the diff, run the relevant tests, and check the behavior the prompt was meant to change. A confident explanation from the model is not a substitute for those checks. If the result is incomplete, provide the failure details in a follow-up request.

Do not include secrets in a prompt, and review what project context may be sent to the configured provider. Limit the request to the files and details needed for the task. Follow your organization's data-handling rules before using any external model with private code.

Start building
Start building