NEXI for Agents
NEXI has three main command surfaces for agents:
nexi- full agentic search with synthesized answers and citationsnexi-search- direct search-provider execution without the agent loopnexi-fetch- direct fetch or extraction without the agent loop
Invocation
Pick the command that matches the job:
nexi --plain "your search query"
nexi-search --json "your search query"
nexi-fetch --json "https://example.com"
- Use
nexi --plainwhen you want a final synthesized answer with citations. - Use
nexi-search --jsonwhen you want raw search results for scripts or agent post-processing. - Use
nexi-fetch --jsonwhen you want fetched page content or extraction payloads.
nexi --plain output is plain text with citations in [1], [2] format and a sources section at the end.
Effort Levels
Control agent search depth with -e; NEXI keeps the exact iteration and token budgets internal:
| Level | Use When |
|---|---|
-e s | Quick facts, simple lookups |
-e m | Default, most queries |
-e l | Deep research, complex topics |
Example:
nexi --plain -e l "compare React vs Svelte performance 2024"
Output Format
[Answer text with inline citations like [1] and [2]...]
Sources:
[1] https://example.com/page1 - "Page Title"
[2] https://example.com/page2 - "Another Title"
Parse the sources section to extract URLs for further processing if needed.
Additional Flags
| Flag | Purpose |
|---|---|
--plain | Plain output for scripts and agents |
-v | Verbose: show tool calls and debug output |
--query-text TEXT | Pass the query explicitly instead of positionally |
--last N | Show the last N saved search previews |
--prev | Show the latest saved full result |
--show ID | Show one saved result by ID |
--json | Structured output for nexi-search and nexi-fetch |
Config Lifecycle
If the config file does not exist yet, NEXI creates ~/.config/nexi/config.toml, tells you it is incomplete, and exits.
Useful commands:
nexi config
nexi onboard
nexi doctor
nexi configopens the current config filenexi onboardguides a basic LLM plus search setupnexi doctorchecks whethernexi,nexi-search, andnexi-fetchare ready
Prerequisites
NEXI requires configuration before use. See references/installation.md for:
- Install commands
- Required API keys and default fetch setup
- Config file location and format
If NEXI fails with config errors, read the installation reference to help set it up.