AI Command Bar
Generate shell commands, ask questions, or supervise multi-step tasks from the Zync workspace.
The AI command bar is available from a terminal or the AI sidebar. Describe the outcome you want in plain language, then review what Zync proposes before you run it.
Press Ctrl+I on Windows and Linux, or Cmd+I on macOS, to open the AI sidebar. The shortcut is configurable in Settings and Shortcuts.
Ask mode and Agent mode
Section titled “Ask mode and Agent mode”The sidebar has two modes:
| Mode | What it does | What you approve |
|---|---|---|
| Ask | Returns a command, explanation, or conversational answer. | You choose whether to copy or run the returned command. |
| Agent | Plans and performs a multi-step task with tools such as run_command, read_file, write_file, and list_files. |
Review the plan and each safety checkpoint. Stop the run whenever needed. |
Ask mode is a command helper. Agent mode is an autonomous workflow that can change files or execute commands on the selected local or SSH session. They share provider configuration, but Agent mode has a much larger action surface.
First run
Section titled “First run”- Open Settings > AI.
- Turn on Enable AI Features if it is disabled.
- Choose a provider and model. Ollama can run without an API key.
- For a cloud provider, unlock the Local Vault when Zync asks and save your API key.
- Open a terminal, press
Ctrl+IorCmd+I, and choose Ask or Agent.
The provider and model pills are also available in the sidebar. Ollama model choices come from the models installed at its URL. Cloud model choices are loaded from the provider when possible, with a fallback list for common models.
Providers
Section titled “Providers”Zync supports these six providers:
| Provider | Key | Default model | Where the request goes |
|---|---|---|---|
| Ollama | No | The first available local model | The configured Ollama URL, http://localhost:11434 by default |
| Google Gemini | Yes | gemini-2.0-flash |
Google Gemini API |
| OpenAI | Yes | gpt-4o |
OpenAI API |
| Claude | Yes | claude-sonnet-4-5-20251101 |
Anthropic API |
| Groq | Yes | llama-3.3-70b-versatile |
Groq’s OpenAI-compatible API |
| Mistral | Yes | mistral-large-latest |
Mistral’s OpenAI-compatible API |
Provider defaults can change as providers retire models. Use the model picker to select a model currently returned by the provider.
Ollama
Section titled “Ollama”Install Ollama from ollama.com, start its local service, and pull at least one model:
ollama pull llama3.2If Zync reports that Ollama is not running, start Ollama and check the URL in Settings > AI. If the selected model is missing, pull that exact model or select one shown in the model picker. A custom Ollama URL can point to a reachable Ollama service, but requests and any context sent to that service are no longer limited to this computer.
Cloud providers
Section titled “Cloud providers”Create a key with the provider, then paste it into the API key field in Settings > AI. Zync sends the key through the Rust backend to the provider request. Zync does not provide usage credits, and provider charges or limits are controlled by your provider account.
API key storage and migration
Section titled “API key storage and migration”Cloud provider keys are stored as encrypted API-token records in the on-device Local Vault. They are not kept as plaintext in settings.json or exposed as a normal renderer setting. Unlocking the vault is required to save or resolve a key.
Older Zync versions could place keys in secrets.json or under ai.keys in settings.json. On migration, Zync copies a key into the Local Vault only when a vault record for that provider does not already exist, then removes the known legacy provider entries. An existing vault value wins over a legacy value.
What context is sent
Section titled “What context is sent”For an active session, Zync can attach:
- the connection type, local or SSH
- the detected operating system and shell
- the current working directory
- the last 20 terminal output lines when terminal context is enabled
- explicitly attached terminal or file context
Terminal output is redacted by default before it is added to an AI request. Redaction reduces accidental disclosure, but it is not a guarantee that a provider can infer no sensitive information. Review the selected provider and the attached context before sending a request.
With Ollama at a local URL, the request stays on the local Ollama path. With Gemini, OpenAI, Claude, Groq, or Mistral, the prompt and attached context go to that provider. Zync does not route these requests through a Zync-hosted AI service. Agent tool output, file content, and diffs can also become part of the provider conversation while an Agent run is active.
See the security notes for the broader vault and provider trust boundary.
Using Ask mode
Section titled “Using Ask mode”- Select Ask in the sidebar.
- Type a request such as
find the process using port 8080. - Press
Enterto stream the response. - Read the answer, command, explanation, and
SAFE,MODERATE, orDANGEROUSclassification. - Copy the command or choose Run in terminal when you are satisfied with it.
Ask mode keeps query history per session. Use the up and down arrows in the input to reuse recent queries. Clear the visible conversation from the sidebar when you want to remove that session’s AI history.
Using Agent mode
Section titled “Using Agent mode”- Select Agent in the sidebar.
- Describe one bounded task, such as
inspect why the API service is failing and show me the smallest safe fix. - Review the generated plan before approving execution.
- Watch tool calls, output, file diffs, and checkpoints as the run proceeds.
- Answer
ask_usercheckpoints explicitly. Use Stop to cancel the run.
Agent runs are scoped to the selected connection, or to the local machine when no SSH host is selected. Completed runs are retained as Brain sessions on the device so you can review the walkthrough and action log.
Safety classifications
Section titled “Safety classifications”Ask results use three risk labels:
SAFE: normally read-only inspection such asls,cat,ps, ordf.MODERATE: changes that may be reversible, such as creating a directory or making a Git commit.DANGEROUS: destructive or high-impact operations such as recursive deletion, filesystem formatting, or destructive database statements.
The label is guidance, not a substitute for reading the command. Agent mode adds explicit checkpoints around actions that need confirmation.
Keyboard reference
Section titled “Keyboard reference”| Key | Action |
|---|---|
Ctrl+I or Cmd+I |
Open or close the AI sidebar |
Enter |
Submit the current request |
Escape |
Close the sidebar when focus is in the AI surface |
Up and Down |
Move through query history |
Change the AI shortcut in Settings > Shortcuts > AI Command Bar.