Install
curl -fsSL https://seekcli.vercel.app/ install.sh | shThe script downloads the latest release for macOS or Linux (amd64 or arm64), checks it against the release checksums and puts the binary at ~/.local/bin/seek. If seek is not found afterwards, add ~/.local/bin to your PATH.
To build from source instead, with Go installed:
git clone https://github.com/ vishruthb/ seek.git
cd seek
go build -o ~/ .local/ bin/ seek ./ cmd/ seek| Command | What it does |
|---|---|
seek --update | Installs the latest release over the current binary |
seek --version | Prints the version, commit and build date |
Seek checks for a new release once a day and tells you when one is out. It is one binary with no background services.
Set up
The quickest start is to export a key for any provider. Seek uses the first provider whose key it finds in your environment.
export OPENROUTER_API_KEY="sk-or-..." # free models through openrouter/ free
export TAVILY_API_KEY="tvly-..." # optional: web search and sources
seek "how do I read a file line by line in go"- Without a Tavily key, Seek answers from the model alone and says so.
- With no provider key at all, Seek uses a local Ollama at
localhost:11434.
The setup wizard
seek --setup asks for a provider, its key, a model, a Tavily key, a search depth and an answer style, then writes ~/.config/seek/config.toml. It lists the provider's models as you choose, with prices where the provider reports them. Press enter to keep a value.
seek --setupSettings inside Seek
/settings opens a panel of your saved defaults. Move with j and k, change a choice with ← and →, and press enter to edit a text value. Each change is saved as you make it. Keys are typed masked and never shown.
Ask a question
seek "what is a transformer in ML?"
seek --format learning "how does QUIC differ from TCP?"
seekWith a question, Seek searches and answers straight away. With none, it opens the input. Each answer cites its sources as [1], [2] and lists them underneath.
How an answer is made
1Your question
Sent with your detected stack and any files you attach.
2Web search
Tavily returns the top results, 5 by default.
3Your model
Reads the results and writes an answer that cites them.
4Your terminal
The answer and its sources print into your scrollback.
Project context
If Seek finds a project manifest in the current directory or a parent (go.mod, package.json, Cargo.toml and others), it adds your language and framework to the search and tells the model which stack you use. /context shows what it detected. /context off turns it off for the session.
Answer styles
| Style | What you get |
|---|---|
concise | Short and skimmable. The default. |
learning | Intuition first, then mechanics, then a takeaway |
explanatory | Sections, tradeoffs and examples |
oneliner | One or two sentences |
Pick one for a single run with --format, or save it with /mode <style>.
Follow-ups
Type below an answer to ask a follow-up. Seek sends the earlier questions and answers of the chat to the model, up to 10 turns back, and runs a new web search for the new question. A short follow-up such as "what about python?" is searched together with the question before it.
A follow-up that only reshapes the last answer, such as "make that shorter", "summarize" or "put this as a table", skips the search and reuses that answer's sources. The status line says so. /retry runs the question again with a new search.
- Press
enterwhile an answer is being written and the question goes next. escstops an answer that is still being written. The part already written stays.↑in an empty input brings back earlier questions, from this session and saved ones.ctrl+rretries after an error.
Chats and side chats
/newstarts a chat with no earlier context and keeps the open one./side <question>starts a side chat that carries everything said so far./backreturns to the chat it came from.ctrl+tlists the session's chats.enteropens one,nstarts a chat,sstarts a side chat andxcloses one.
Memory
/remember <note> keeps a note that goes with every question, such as /remember I use fish and pnpm. /memory lists notes and /forget <n> drops one. They are in ~/.config/seek/memory.md.
When a question matches an earlier saved chat, that answer goes with it as context, and the answer lists it under its sources. Recall in /settings turns this off.
Inline and full screen
By default Seek runs inline. The question, the answer and its sources print into your terminal's scrollback as they finish, and the input stays at the bottom. Everything is still there after you quit.
Press ctrl+o for full screen, and again to go back. To start there, run seek --fullscreen or set Start in to fullscreen in /settings.
The input stays ready for the next question. ↑, ↓, pgup and pgdn scroll the answer, and tab moves to the sources list. On an empty input, esc switches to single-letter keys: j and k scroll, / finds text and y copies. Every key is listed under Keyboard.
Pipe errors in
Pipe any command's output into Seek. It extracts the error, searches with your project context and explains the fix. Add a question to steer it.
cargo build 2>&1 | seek
go test ./ ... 2>&1 | seek
kubectl get pods 2>&1 | seek "why is my pod in CrashLoopBackOff"If Seek's own output is piped or redirected too, it prints plain markdown instead of opening the interface:
cargo build 2>&1 | seek > fix.mdExplain the last failed command
seek --last-error reruns your last failed command and explains its output. It needs a shell hook that records the command. Seek only runs the recorded file if you own it and no one else can write to it. For zsh:
seek_capture_error() {
local exit_code=$?
if [[ $exit_code -ne 0 ]]; then
fc -ln -1 > "${TMPDIR:-/ tmp}/ seek_last_cmd_${USER}.txt" 2>/ dev/ null
fi
return $exit_code
}
precmd_functions+=(seek_capture_error)For bash, define the same function and add this line:
PROMPT_COMMAND="seek_capture_error; $PROMPT_COMMAND"Attach files
explain @[app.go]
compare @[internal/ server.go] and @[internal/ router.go]Type @[ and Seek suggests files from the current directory. Pick one with ↑, ↓ and tab.
- Files are read on your machine and sent to your model provider with that question. They are not sent to Tavily.
- A file must be inside the current directory and be UTF-8 text.
- Seek sends the first 24 KB of each file and at most 96 KB across all files in one question.
Models and providers
Seek works with these providers. Set one with --provider, /provider or the config file. A provider with no default model needs you to pick one.
| Provider | Key variable | Default model |
|---|---|---|
openrouter | OPENROUTER_API_KEY | openrouter/free |
groq | GROQ_API_KEY | pick one |
cerebras | CEREBRAS_API_KEY | pick one |
together | TOGETHER_API_KEY | pick one |
fireworks | FIREWORKS_API_KEY | pick one |
deepinfra | DEEPINFRA_API_KEY | pick one |
huggingface | HF_TOKEN | pick one |
nvidia | NVIDIA_API_KEY | pick one |
sambanova | SAMBANOVA_API_KEY | pick one |
novita | NOVITA_API_KEY | pick one |
hyperbolic | HYPERBOLIC_API_KEY | pick one |
mistral | MISTRAL_API_KEY | pick one |
deepseek | DEEPSEEK_API_KEY | pick one |
xai | XAI_API_KEY | pick one |
openai | OPENAI_API_KEY | pick one |
anthropic | ANTHROPIC_API_KEY | claude-sonnet-5-5 |
ollama | none | llama3.1:8b |
lmstudio, llamacpp, vllm | none | pick one |
custom | SEEK_API_KEY | set base_url and model |
Choose a model
/model lists the provider's models as you type, and /models prints the whole list. Both show free or the price per million tokens where the provider reports one, cheapest first. From the shell, seek --models prints the same list.
/provider <name> [model]and/model <id>switch and save your choice.--providerand--modelapply to one run only.
Where API keys live
A key comes from the provider's env var or from [keys] in the config file, one entry per provider. The env var wins. A key is only ever sent to its own provider, so switching providers never sends one provider's key to another.
provider = "openrouter"
model = "openrouter/ free"
[keys]
openrouter = "sk-or-..."
groq = "gsk_..."Local and custom endpoints
Ollama, LM Studio, llama.cpp and vLLM run on your machine and need no key. A server on your machine or private network (localhost, LAN, *.local, Tailscale) can use plain http. Everything else needs https.
For any other OpenAI-compatible API, set provider = "custom", base_url and model, and put the key in SEEK_API_KEY.
Web search
Seek searches with Tavily. Get a key at tavily.com, then set TAVILY_API_KEY or add it in /settings. A deeper search is slower and more thorough:
| Depth | Speed | Tavily credits |
|---|---|---|
ultra-fast | Quickest, least thorough | 1 |
fast | The default | 1 |
basic | Slower, more thorough | 1 |
advanced | Slowest | 2 |
/depth <name>or--depth <name>sets the depth. Typing/depthand a space lists the four./results <1-20>or--results <n>sets how many results the model reads. The default is 5.
Usage and quota
/usage shows what your provider reports: tokens and cost for this session, your rate limits, and account quota where the provider has an endpoint for it.
| Provider | What it reports |
|---|---|
| OpenRouter | Tokens, cost, free requests left today, plan, spend, credits and key expiry |
| Anthropic | Tokens and rate limits |
| Other hosted providers | Tokens and rate limits, when they send them |
| Local models | Tokens, when the server sends them |
A free model can be rate limited even when your own quota is fine, because its capacity is shared between every user. Seek names the host that refused the request. Wait a moment, or switch with /model.
History
Seek saves every answer to a SQLite database at ~/.config/seek/history.db.
seek --history "tcp handshake" # search saved answers
seek --recent # the latest answers
seek --recent 20 --project . # the latest 20 from this project
seek --stats # totals
seek --resume # pick a saved chat to continue
seek --resume <id> # continue one chat
seek --open <id> # view one saved answer- Inside Seek,
/history <query>,/recent [n],/statsand/resume [id]do the same./resumewith no id lists your saved chats. seek --clear-historyor/clear-historydeletes all saved chats.- To stop saving, turn History off in
/settingsor sethistory_enabled = false.
Commands
Type / in the input to see every command with suggestions for its arguments.
| Command | What it does |
|---|---|
/new | Start a new chat and keep this one |
/side [question] | Start a side chat that carries this chat's context |
/back | Return from a side chat, or to the last chat |
/chats | Switch between the session's chats, same as ctrl+t |
/remember <note> | Keep a note that goes with every question |
/memory | Show notes and whether recall is on |
/forget <n>|all | Drop a note |
/resume [id] | Continue a saved chat |
/settings | Change and save your defaults |
/provider <name> [model] | Switch model provider and save it |
/model <id> | Switch model and save it |
/models | List the provider's models and prices |
/usage | Show tokens, cost, rate limits and quota |
/mode <style> | Set the answer style and save it |
/depth <name> | Set the search depth for this session |
/results <1-20> | Set how many search results the model reads |
/context [on|off] | Show or toggle project context |
/full | Toggle the full-screen reader, same as ctrl+o |
/copy | Copy the whole chat as markdown |
/code | Copy a code block from the last answer |
/open <n> | Open source n in the browser |
/retry | Run the last question again, with a new search |
/history <query> | Search saved chats |
/recent [n] | Show recent saved chats |
/stats | Show history stats |
/clear-history | Delete all saved chats |
/toggle | Switch between light and dark and save it |
/show | Show the session's settings |
/help | List commands and keys |
/exit | Quit Seek |
/status, /quit, /fullscreen, /threads and /fork are other names for /show, /exit, /full, /chats and /side. /backend ollama|openai switches to the older ollama_* or openai_* settings in configs that still use them.
Keyboard
Inline and full screen
| Key | Inline | Full screen |
|---|---|---|
enter | Ask, or ask next while an answer is written | Ask, or ask next while an answer is written |
↑ / ↓ | Earlier questions | Scroll |
ctrl+p / ctrl+n | Earlier questions | Earlier questions |
pgup / pgdn | — | Scroll a page |
tab | — | Open the sources list |
esc | Stop an answer, or clear the input | Stop an answer, clear the input, or browse the answer |
ctrl+t | Switch chats | Switch chats |
ctrl+y | Copy the last answer | Copy the last answer |
ctrl+o | Full screen | Back to inline |
ctrl+r | Retry after an error | Retry after an error |
ctrl+l | Redraw the screen | Redraw the screen |
ctrl+c | Stop an answer, clear the input, or quit | Stop an answer, clear the input, or quit |
Browsing an answer
In full screen, esc on an empty input switches to these keys. Any other letter goes back to the input and is typed there.
| Key | What it does |
|---|---|
j / k | Scroll a line |
d / u | Scroll a page down or up |
g / G | Jump to the top or the bottom |
/ | Find in the answer, then n and N for the next and previous match |
tab | Switch to the sources list |
esc / f | Back to the input |
y / Y | Copy the answer, or pick a code block to copy |
p | Print the chat to your terminal when you quit, on or off |
r | Retry after an error |
q | Back to inline, or quit when Seek started in full screen |
The sources list
| Key | What it does |
|---|---|
j / k | Move the selection |
enter / o | Open the source in your browser |
y | Copy the source's URL |
tab / esc | Go back |
The chat list
| Key | What it does |
|---|---|
j / k | Move the selection |
enter | Open the chat |
n / s | Start a chat, or a side chat |
x | Close the chat; saved turns stay in history |
esc | Go back |
The input
| Key | What it does |
|---|---|
@[ | Suggest a local file to attach |
/ | Suggest a command |
↑ / ↓ | Pick a suggestion |
tab | Complete the picked suggestion |
Command-line flags
| Flag | What it does |
|---|---|
--provider <name> | Use a model provider for this run |
--model <id> | Use a model for this run |
--models | List the provider's models, with prices where reported |
--format <style> | Answer style: concise, learning, explanatory or oneliner |
--depth <name> | Search depth: ultra-fast, fast, basic or advanced |
--results <n> | How many search results the model reads |
--inline | Answer inline, into your scrollback |
--fullscreen | Open the full-screen reader |
--last-error | Rerun the last failed command and explain its output |
--history <query> | Search saved answers |
--recent [n] | Print recent answers |
--project <dir> | Limit --recent and --resume to one project |
--stats | Print history totals |
--resume [id] | Continue a saved chat |
--open <id> | View one saved answer |
--clear-history | Delete all saved chats |
--setup | Run the setup wizard |
--config | Print the config file's path |
--update | Install the latest release |
--version | Print the version |
Config file
The config file is ~/.config/seek/config.toml. seek --config prints its path. seek --setup and /settings write it for you, and you can edit it by hand.
| Key | Values | Default |
|---|---|---|
provider | A provider name, or empty to use the first one whose key is in your environment | empty |
model | A model id, or empty for the provider's default | empty |
base_url | Only for custom, or a local server on another port | empty |
tavily_api_key | Your Tavily key | empty |
search_depth | ultra-fast, fast, basic or advanced | fast |
max_results | 1 to 20 | 5 |
output_format | concise, learning, explanatory or oneliner | concise |
theme | auto, dark or light | auto |
display | inline or fullscreen | inline |
print_on_exit | In full screen, print the chat when you quit | false |
browser | Command that opens sources, or empty for the system default | empty |
max_turns | Earlier turns sent with a follow-up | 10 |
history_enabled | Save answers to the history database | true |
memory | Send matching earlier chats along as context | true |
[keys] | One API key per provider name | empty |
Environment variables
These override the config file for the shell they are set in.
| Variable | Overrides |
|---|---|
SEEK_PROVIDER | provider |
SEEK_MODEL | model |
SEEK_BASE_URL | base_url |
SEEK_API_KEY | The key for a custom provider |
TAVILY_API_KEY | tavily_api_key |
SEEK_FORMAT | output_format |
SEEK_THEME | theme |
SEEK_DISPLAY | display |
SEEK_HISTORY_ENABLED | history_enabled |
OLLAMA_HOST | The address of a local Ollama |
Each provider's own key variable, such as OPENROUTER_API_KEY, overrides its entry under [keys]. Older configs that use llm_backend, openai_* and ollama_* keep working.
Privacy
- Search queries go to Tavily when a Tavily key is set.
- Search results and the files you attach with
@[...]go to your model provider for that question. - Use a local model if you want the answer step to stay on your machine.
- Notes you keep with
/remember, and earlier chats that Seek recalls, go to your model provider with the question. - History and notes stay on your machine, in
~/.config/seek/history.dband~/.config/seek/memory.md. - The config file is readable only by you.
Troubleshooting
| What you see | What to do |
|---|---|
seek: command not found | Add ~/.local/bin to your PATH and open a new shell |
| No API key set for a provider | Export its key variable, or add the key under Provider key in /settings |
| A provider rejected the API key | Check the key under [keys] in the config, or the env var that overrides it |
| A model is rate limited | Wait a moment and press ctrl+r, or switch with /model |
| Cannot connect to Ollama | Start it with ollama serve, or switch with /provider |
| No sources under an answer | Add a Tavily key. Without one, Seek answers from the model alone |
| An unknown model id | Run /models and pick one from the list |