DocsWhat you can doAn open harness, a model in Europe
For agentsThe whole chain in Europe.
Your data and the platform already are. This page puts the model there too, with an open-source agent in your terminal.
Before you start: A terminalA LakehouseBox accountAn account with an EU model provider
LakehouseBox works with any agent and any model: nothing in it depends on one vendor. If you cannot, or will not, send your work to an assistant hosted outside Europe, you can use an open-source agent that runs in your terminal with an open-weight model served from the EU. Your tables stay where they are, in Europe, and the agent reads and writes them with the same lhbox CLI as any other agent.
This page shows one setup, tested end to end on 24 November 2026: OpenCode 1.19.6, the model Qwen 3.5 397B (qwen3.5-397b-a17b) on Scaleway Generative APIs in Paris, and lhbox 0.6.212. Scaleway is the worked example, not a requirement: any provider with an OpenAI-compatible API configures the same way.
Give the model provider its own key
A key for the terminal only, so it can be revoked alone.
At your provider, make a separate project (or the equivalent) for this agent and a key that may only call the models. On Scaleway that is a project of its own and an IAM application holding only GenerativeApisModelAccess. That key cannot touch anything else in your account, and you can revoke it without affecting anything else.
Point OpenCode at the model
One provider entry in OpenCode's configuration; the key is kept by OpenCode, not in the file.
In ~/.config/opencode/opencode.json, add the provider as an OpenAI-compatible one, with your project's endpoint and the models you want to offer:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"scaleway": {
"npm": "@ai-sdk/openai-compatible",
"name": "Scaleway (Paris)",
"options": { "baseURL": "https://api.scaleway.ai/<project-id>/v1" },
"models": { "qwen3.5-397b-a17b": { "name": "Qwen 3.5 397B" } }
}
}
}
Then, inside OpenCode, store the key with /connect and choose the model. The key never goes in the file. OpenCode's own model gateways are not limited to Europe, which is why the model comes from a provider you configure.
Give the agent the CLI
With a shell, the agent works through lhbox; you approve the machine once.
Install the CLI and approve this machine in your browser, as on Agent setup:
curl -fsSL https://lakehousebox.com/install.sh | sh
lhbox login
lhbox doctor
Use the CLI, not the MCP server, from a harness that has a shell: creating a catalog, a scheduled SQL sink or a hosted agent needs the CLI anyway (which tasks need which). If you also add the MCP server to OpenCode while lhbox is signed in, OpenCode says "mcp lakehousebox auth required" when it starts. Nothing is wrong, but it reads like a failure: leave the MCP entry out, or set "enabled": false on it.
Tell it how you work
A short AGENTS.md in the folder where you run the agent saves it from guessing commands.
An open-weight model has not been trained on lhbox and may guess a command before finding the right one. A short AGENTS.md in the working folder, with the catalog you use and one example per command, fixes most of that. In the recorded run, the same request ("list the tables of catalog anticipa") took three attempts and 12 seconds without one, and one command and 2.4 seconds with a 60-line AGENTS.md. Add the rule "run lhbox table get before the first query on a table", so it reads the column names instead of guessing them.
Keep the session where you want it
OpenCode's share link uploads the conversation; export keeps it on your machine.
/share uploads the session to OpenCode's servers to make a link. If you care where your session goes, use /export instead, which writes it to a file on your machine.
What it costs
You pay the model provider per token, with no flat fee: an interactive session in the recorded run came to a few euros. LakehouseBox charges as for any other agent. The hosted agents LakehouseBox runs for you use models in Paris too, with their own allowance (Hosted agents).