Configuration
Set conciv's options where you add it to your bundler, one option at a time.
conciv takes one options object where you add it to your bundler. Every option is optional. Set only the ones you need.
import {} from 'vite'
import from '@conciv/it/plugin/vite'
export default ({
: [({: 'codex', : 4321})], // <- the options object
})import type {NextConfig} from 'next'
import {} from '@conciv/it/plugin/nextjs'
const : NextConfig = {}
export default (, {: 'codex'const conciv = require('@conciv/it/plugin/webpack')
module.exports = {
mode: 'development',
plugins: [conciv.default({harness: 'codex', port: 4321})], // <- the plugin's argument
}const conciv = require('@conciv/it/plugin/rspack')
module.exports = {
mode: 'development',
plugins: [conciv.default({harness: 'codex', port: 4321})], // <- the plugin's argument
}The examples below use Vite. The object is the same on every bundler. The full list with types and defaults is at the end of the page.
Options
enabled
Turn conciv off without removing it. No engine starts and no widget is added.
({: false})port
Ask the engine for a port.
({: 4321})Without port, the engine takes the port it used last time in this project. With no port from last time, Vite takes a
free one. Next.js, webpack and Rspack take one of 1000 ports from 24170 up, picked from the project folder, so two
projects rarely ask for the same one. The engine listens on 127.0.0.1 only. It writes the port it took to
.conciv/server.json.
When the port is taken, the engine takes a free one. On Vite it prints a warning. Next.js, webpack and Rspack switch with no message. They switch before they build the widget, so the widget and the engine still agree.
widget
Move or turn off the two layouts. modal is the corner panel. quickTerminal is the sheet that drops from the top.
({: {: {: 'top-left'}, : {: 'Alt+k'}}})modal.positionis a corner or a middle edge. The default isbottom-right.quickTerminal.hotkeyreplaces the defaultMod+`. Pass an array for more than one key.falsefor a layout turns it off.
Set widget: false when you render the widget yourself with <ConcivWidget />. The engine still runs, and the page
does not get two widgets. Learn more in Quick terminal.
plugins
Load plugins by package name or by path.
({: ['@conciv/plugin-test-runner', ['./my-plugin', {: 'core'}]]})- A string loads the plugin with no options.
[name, options]passes options to the plugin. Every option value must be JSON.- A path starts with
./or../(from the project folder), or is absolute. Anything else is a package name. - A name with a leading
-removes that plugin.
Learn more in Add plugins.
harness
Pick the agent CLI a new session starts with. The default is claude.
({: 'opencode'})You can still switch harness from the model menu. Learn more in Harnesses.
systemPrompt
Replace the prompt conciv gives the agent, or give none.
({: 'Answer in one short paragraph.'})- A string replaces conciv's built-in prompt.
falsegives no conciv prompt.- Left out, the agent gets conciv's built-in prompt.
The engine writes the prompt it used to .conciv/chat-system-prompt.txt. Claude gets it after Claude Code's own prompt.
permission
Answer permission cards ahead of time, when you already know the answer.
permission takes three short forms:
- One effect for every action:
'allow'. - One effect per action:
{page_eval: 'deny'}. - One effect per action and resource:
{page_eval: {'document.title': 'allow'}}.
The effect is allow, deny or ask. Learn more in Agents and permissions.
permissions
Write permission rules in full, as a list.
These rules apply after the short forms in permission. A saved Allow always answer still beats an ask rule.
policies
Allow or deny a whole kind of use, such as one plugin.
The actions are:
provider.usetool.useintegration.connectintegration.usemcp.useskill.useplugin.usewebsearch.use
The effect is allow or deny.
hubAccess
Decide whether an agent outside the tab needs your yes first. An outside agent runs in your own terminal, connected
with npx @conciv/cli mcp connect.
open, the default, lets a connected agent into every open tab.projectshows a card in the tab the first time an outside agent calls it. You allow it once, always, or not at all.
Learn more in Agents.
stateRoot
Move the .conciv state folder out of the project root.
homeDir
Move the folder conciv shares across projects, such as the agents you connected.
The default is your platform's data folder.
devEndpointDir
Move dev-endpoint.json, the file the iOS SDK reads to find the engine. The default is ~/.conciv.
sessionId and claudeSessionId
Open the engine on a session you name.
sessionIdis a conciv session id (ses_...). Any other value stops the engine with an error.claudeSessionIdis a harness session id: up to 128 letters, digits,_and-.
The engine makes sure the session exists when it starts. Learn more in Sessions.
Set an option from the environment
Some options also read an environment variable. Use one to change an option for a single run:
CONCIV_HARNESS=codex pnpm devAn option set in the config wins over its variable.
Prop
Type
All options
conciv generates this table from the config schema it validates your options with.
Prop
Type
Next steps
- Add plugins: load a plugin and pass it options.
- Harnesses: the agent CLIs
harnesscan name. - Agents and permissions: how
permission,permissionsand saved answers combine.