# OpenCode

Add Flovia to an OpenCode project and sign in with OAuth.

## Add Flovia to your project

Open a terminal in the project where you use OpenCode. Run `opencode mcp list` to check for an existing server. If `flovia` is listed and it uses https://api.flovia.dev/mcp, continue to sign-in with that entry. If the entry points elsewhere, check the project's configuration before changing it.

If `flovia` is missing, select **OpenCode** in Quick Install in [Flovia Console](https://console.flovia.dev/groupbuy/). Run the commands shown there from your project's terminal, then [sign in to Flovia](/connect/oauth.md) in your browser. If you have no Flovia account, create one during sign-in.

If OpenCode says an existing `flovia` entry needs authentication, use the sign-in command from Quick Install for that entry. OAuth does not require an API key.

## Check the connection

Start a new OpenCode session in the same project and ask it to call `flovia_status` once. A successful reply confirms that this session can use Flovia. The check does not fetch provider data.

If the tools are missing, check that you are in the same project and that `opencode mcp list` shows Flovia. If it needs authentication, sign in again. [Check your connection](/connect/check.md) has the status prompt and recovery steps.
