Skip to content

Manage from the terminal

Everything on this page is saved in the same places as the desktop app: what you configure here shows up in the window, and vice versa. It is meant for headless servers, but it works the same on your own machine.

Ventana de terminal
contextcode mcp listar # user, project and local
contextcode mcp agregar --env API_KEY fs npx -y @modelcontextprotocol/server-filesystem /srv
contextcode mcp agregar --ambito proyecto -H "Authorization: Bearer X" docs https://example.com/mcp
contextcode mcp probar fs # starts it, does the handshake and lists its tools
contextcode mcp quitar fs
  • In agregar, options go before the name; whatever follows the command is its arguments.
  • The transport is inferred: a URL is http, anything else stdio. For sse, use --transporte sse.
  • --env KEY without a value takes the value from your current environment, so the key doesn’t end up in the shell history.
  • --ambito: usuario (default, applies to every project), proyecto (shared with the repository) or local (project-scoped but private).

The English aliases also work: mcp list|add|remove|test.

Ventana de terminal
contextcode skills listar
contextcode skills instalar owner/repo # from skills.sh; --global for every project
contextcode skills quitar my-skill
Ventana de terminal
contextcode canal configurar telegram # asks for the token without showing it and validates it
echo "$TOKEN" | contextcode canal configurar slack --token -
contextcode canal estado # which channels are ready, without showing tokens
contextcode canal telegram # leaves the agent listening

The token is stored encrypted, just as from Channels in the app. It is not accepted as an argument so it doesn’t stay in the history. Useful options: --usuario <ID> (who can talk to the bot, repeatable), --canal-slack <ID> and --sin-validar for servers without internet access.

Ventana de terminal
contextcode automatizaciones listar
contextcode automatizaciones crear --nombre "Summary" --cada "diario 8" \
--destino telegram "Summarize yesterday's commits in the repository"
contextcode automatizaciones ejecutar <id> # now, in the foreground
contextcode automatizaciones desactivar <id>
contextcode automatizaciones activar <id>
contextcode automatizaciones borrar <id>

--cada accepts "5 minutos", "2 horas", "diario", "diario 8" or a 5-field cron expression. --destino is telegram, slack, whatsapp (with an optional :recipient) or a URL. They are fired by the same scheduler as the app’s (contextcode tick). More in Automations.

Ventana de terminal
contextcode caja listar # id, type, strength and expiry; never values
contextcode caja guardar mantis/prod/me --tipo password
contextcode caja rotar mantis/prod/me
contextcode caja borrar mantis/prod/me

Values are asked for in the terminal without echo and never as an argument. In scripts, --stdin reads them from standard input. It uses the vault of the project in the current directory, or the one in --workspace.

Ventana de terminal
contextcode modelos # models per provider; marks the active one
contextcode modelos usar glm-5 # default for chat and run
contextcode provider login openai --key # asks for the key without showing it
echo "$KEY" | contextcode provider login openai --key -

contextcode modelos usar changes the same default as the app’s model picker. --refrescar skips the 24-hour cache.

Ventana de terminal
contextcode uso # today, week and month
contextcode uso semana --json

The same tokens and costs as the app’s usage panel.