Docs

Seek searches the web from your terminal and answers with the model you choose.

Install

curl -fsSL https://seekcli.vercel.app/install.sh | sh

The 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
CommandWhat it does
seek --updateInstalls the latest release over the current binary
seek --versionPrints 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 --setup

Settings 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.

The /settings panel with the search depth row selected
Settings, saved to /Users/dev/.config/seek/config.toml
Start in inline
Theme auto
Answer style concise
Provider openrouter
Model baidu/ernie-5.5-flash-preview:free
Provider key set
Tavily key set
› Search depth ‹ fast ›
Search results 5
Follow-up memory 10
History on
Recall on
Print on quit off
Browser system default
advanced is slowest and costs 2 Tavily credits
j/k move ←/→ change esc close

Ask a question

seek "what is a transformer in ML?"
seek --format learning "how does QUIC differ from TCP?"
seek

With 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

  1. 1Your question

    Sent with your detected stack and any files you attach.

  2. 2Web search

    Tavily returns the top results, 5 by default.

  3. 3Your model

    Reads the results and writes an answer that cites them.

  4. 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.

Seek searching for an answer, with the detected stack go/chi in its header and one attached file under the question
■ seek openrouter/freego/chi
› how do I add auth middleware to @[internal/api/router.go]?
with internal/api/router.go
▘ Searching the webopenrouter/free

Answer styles

StyleWhat you get
conciseShort and skimmable. The default.
learningIntuition first, then mechanics, then a takeaway
explanatorySections, tradeoffs and examples
onelinerOne 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.

A follow-up question with the status line reading Reusing the last sources
› shorter, as a checklist
› Ask next. It goes when this answer finishes
▘ Reusing the last sourcesopenrouter/free go/chi
  • Press enter while an answer is being written and the question goes next.
  • esc stops 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+r retries after an error.

Chats and side chats

  • /new starts a chat with no earlier context and keeps the open one.
  • /side <question> starts a side chat that carries everything said so far. /back returns to the chat it came from.
  • ctrl+t lists the session's chats. enter opens one, n starts a chat, s starts a side chat and x closes 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.

A recorded Seek session: a question answered inline with its sources, a follow-up that reuses them, then the full-screen reader

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 Seek full-screen reader showing an answer with a Go code block
■ seek openrouter/freego/chi
› how do I add middleware to a chi router?
Use r.Use() on a chi.Router to register middleware. Middleware added to the
top-level router runs for all requests; add Use() inside a Route or Group
callback to scope it to a subset of routes.
go
r := chi.NewRouter()
// Global middleware
r.Use(middleware.Logger)
r.Use(middleware.Recoverer)
› Ask a follow-up, or esc to browse the answer
Searched in 1.1s, answered in 2.4s↑↓ scroll tab sources

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.

A Go panic piped into Seek, and its answer
$ go run . 2>&1 | seek "two sentences"
› two sentences
piped input (1 line)
panic: runtime error: index out of range [3] with length 3
You're accessing index 3 in a slice/array that only has 3 elements (valid
indices 0–2). Fix by checking bounds before access or using a safer iteration
pattern like for i := range slice.
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.md

Explain 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.

The input with @[ro typed and two matching files suggested
› explain @[ro
› internal/api/router.go
internal/api/routes_test.go
  • 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.

ProviderKey variableDefault model
openrouterOPENROUTER_API_KEYopenrouter/free
groqGROQ_API_KEYpick one
cerebrasCEREBRAS_API_KEYpick one
togetherTOGETHER_API_KEYpick one
fireworksFIREWORKS_API_KEYpick one
deepinfraDEEPINFRA_API_KEYpick one
huggingfaceHF_TOKENpick one
nvidiaNVIDIA_API_KEYpick one
sambanovaSAMBANOVA_API_KEYpick one
novitaNOVITA_API_KEYpick one
hyperbolicHYPERBOLIC_API_KEYpick one
mistralMISTRAL_API_KEYpick one
deepseekDEEPSEEK_API_KEYpick one
xaiXAI_API_KEYpick one
openaiOPENAI_API_KEYpick one
anthropicANTHROPIC_API_KEYclaude-sonnet-5-5
ollamanonellama3.1:8b
lmstudio, llamacpp, vllmnonepick one
customSEEK_API_KEYset 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.

The /model command listing models with their prices
› /model
› baidu/ernie-5.5-flash-pre… free
google/gemma-4-31b-it:free free
inference-net/schematron-… $0.03 in, $0.15 out per 1M tokens
cohere/command-r7b-12-2024 $0.04 in, $0.15 out per 1M tokens
google/gemma-3-12b-it $0.05 in, $0.15 out per 1M tokens
  • /provider <name> [model] and /model <id> switch and save your choice.
  • --provider and --model apply 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.

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:

DepthSpeedTavily credits
ultra-fastQuickest, least thorough1
fastThe default1
basicSlower, more thorough1
advancedSlowest2
  • /depth <name> or --depth <name> sets the depth. Typing /depth and a space lists the four.
  • /results <1-20> or --results <n> sets how many results the model reads. The default is 5.
The /depth command listing the four search depths
› /depth
ultra-fast quickest, least thorough
› fast the default
basic slower, more thorough
advanced slowest, costs 2 Tavily credits

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.

The /usage command showing session tokens, rate limits and account quota
■ seek openrouter/baidu/ernie-5.5-flash-preview:free
Usage
OpenRouter, baidu/ernie-5.5-flash-preview:free
This session
• Answers: 3
• Tokens: 6,420 in, 1,236 out
• Cost: $0
Rate limits
• Requests: 17 of 20 left, resets in 41s
Account
• Free model requests today: 38 of 50 left
• Plan: free tier
• Spent: $0 today, $0 this month, $0 in total
› Ask anything, or esc to close
Searched in 1.1s, answered in 2.4s↑↓ scroll
ProviderWhat it reports
OpenRouterTokens, cost, free requests left today, plan, spend, credits and key expiry
AnthropicTokens and rate limits
Other hosted providersTokens and rate limits, when they send them
Local modelsTokens, 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], /stats and /resume [id] do the same. /resume with no id lists your saved chats.
  • seek --clear-history or /clear-history deletes all saved chats.
  • To stop saving, turn History off in /settings or set history_enabled = false.
The resume list with two saved chats
Resume a chat
› how do I add middleware to a chi router?2h ago go/chi
what is a goroutine leak and how do I find one?yesterday go/chi

Commands

Type / in the input to see every command with suggestions for its arguments.

The input with / typed and the first six commands suggested
› /
› /new start a new chat
/resume continue a saved chat
/settings change and save your defaults
/provider switch model provider and save it
/model switch model and save it
/models list the provider's models and prices
1 of 25
CommandWhat it does
/newStart a new chat and keep this one
/side [question]Start a side chat that carries this chat's context
/backReturn from a side chat, or to the last chat
/chatsSwitch between the session's chats, same as ctrl+t
/remember <note>Keep a note that goes with every question
/memoryShow notes and whether recall is on
/forget <n>|allDrop a note
/resume [id]Continue a saved chat
/settingsChange and save your defaults
/provider <name> [model]Switch model provider and save it
/model <id>Switch model and save it
/modelsList the provider's models and prices
/usageShow 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
/fullToggle the full-screen reader, same as ctrl+o
/copyCopy the whole chat as markdown
/codeCopy a code block from the last answer
/open <n>Open source n in the browser
/retryRun the last question again, with a new search
/history <query>Search saved chats
/recent [n]Show recent saved chats
/statsShow history stats
/clear-historyDelete all saved chats
/toggleSwitch between light and dark and save it
/showShow the session's settings
/helpList commands and keys
/exitQuit 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

KeyInlineFull screen
enterAsk, or ask next while an answer is writtenAsk, or ask next while an answer is written
↑ / ↓Earlier questionsScroll
ctrl+p / ctrl+nEarlier questionsEarlier questions
pgup / pgdn—Scroll a page
tab—Open the sources list
escStop an answer, or clear the inputStop an answer, clear the input, or browse the answer
ctrl+tSwitch chatsSwitch chats
ctrl+yCopy the last answerCopy the last answer
ctrl+oFull screenBack to inline
ctrl+rRetry after an errorRetry after an error
ctrl+lRedraw the screenRedraw the screen
ctrl+cStop an answer, clear the input, or quitStop 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.

KeyWhat it does
j / kScroll a line
d / uScroll a page down or up
g / GJump to the top or the bottom
/Find in the answer, then n and N for the next and previous match
tabSwitch to the sources list
esc / fBack to the input
y / YCopy the answer, or pick a code block to copy
pPrint the chat to your terminal when you quit, on or off
rRetry after an error
qBack to inline, or quit when Seek started in full screen

The sources list

KeyWhat it does
j / kMove the selection
enter / oOpen the source in your browser
yCopy the source's URL
tab / escGo back

The chat list

KeyWhat it does
j / kMove the selection
enterOpen the chat
n / sStart a chat, or a side chat
xClose the chat; saved turns stay in history
escGo back

The input

KeyWhat it does
@[Suggest a local file to attach
/Suggest a command
↑ / ↓Pick a suggestion
tabComplete the picked suggestion

Command-line flags

FlagWhat it does
--provider <name>Use a model provider for this run
--model <id>Use a model for this run
--modelsList 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
--inlineAnswer inline, into your scrollback
--fullscreenOpen the full-screen reader
--last-errorRerun 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
--statsPrint history totals
--resume [id]Continue a saved chat
--open <id>View one saved answer
--clear-historyDelete all saved chats
--setupRun the setup wizard
--configPrint the config file's path
--updateInstall the latest release
--versionPrint 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.

KeyValuesDefault
providerA provider name, or empty to use the first one whose key is in your environmentempty
modelA model id, or empty for the provider's defaultempty
base_urlOnly for custom, or a local server on another portempty
tavily_api_keyYour Tavily keyempty
search_depthultra-fast, fast, basic or advancedfast
max_results1 to 205
output_formatconcise, learning, explanatory or onelinerconcise
themeauto, dark or lightauto
displayinline or fullscreeninline
print_on_exitIn full screen, print the chat when you quitfalse
browserCommand that opens sources, or empty for the system defaultempty
max_turnsEarlier turns sent with a follow-up10
history_enabledSave answers to the history databasetrue
memorySend matching earlier chats along as contexttrue
[keys]One API key per provider nameempty

Environment variables

These override the config file for the shell they are set in.

VariableOverrides
SEEK_PROVIDERprovider
SEEK_MODELmodel
SEEK_BASE_URLbase_url
SEEK_API_KEYThe key for a custom provider
TAVILY_API_KEYtavily_api_key
SEEK_FORMAToutput_format
SEEK_THEMEtheme
SEEK_DISPLAYdisplay
SEEK_HISTORY_ENABLEDhistory_enabled
OLLAMA_HOSTThe 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.db and ~/.config/seek/memory.md.
  • The config file is readable only by you.

Troubleshooting

What you seeWhat to do
seek: command not foundAdd ~/.local/bin to your PATH and open a new shell
No API key set for a providerExport its key variable, or add the key under Provider key in /settings
A provider rejected the API keyCheck the key under [keys] in the config, or the env var that overrides it
A model is rate limitedWait a moment and press ctrl+r, or switch with /model
Cannot connect to OllamaStart it with ollama serve, or switch with /provider
No sources under an answerAdd a Tavily key. Without one, Seek answers from the model alone
An unknown model idRun /models and pick one from the list