id = "ollama" name = "Ollama" homepage = "https://ollama.com" description = "Start building with open models." icon = "SimpleIcons:ollama" executables = ["ollama"] [dotfiles] # envconfig/config.go (ollama/ollama) reads the settings file at # filepath.Join(home, ".ollama", "server.json") — serverConfigData, currently # the disable_ollama_cloud flag, with ReloadServerConfig() picking up edits. # Everything else Ollama keeps under ~/.ollama is state: Models() defaults to # ~/.ollama/models, readline/history.go writes ~/.ollama/history, and # auth/auth.go keeps the key pair there. paths = ["~/.ollama/server.json"] # Model blobs and manifests (gigabytes, and re-downloadable), and the REPL # history. exclude = ["~/.ollama/models/", "~/.ollama/history"] # auth/auth.go: ~/.ollama/id_ed25519 is the private half of the identity # `ollama signin` registers with the ollama.com account. The .pub beside it is # public and needs no rule. secret = ["~/.ollama/id_ed25519"] # No machine_lines: the file holds feature flags, not paths. The host, model # directory and context length are environment variables (OLLAMA_HOST, # OLLAMA_MODELS), which live in the shell rc. [commands] format = 1 label = "Ollama" description = "Run, inspect and remove local models. Serving, pulling, pushing and Modelfile creation are left out." quality = "ai-draft" base = "fig:ollama" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/ollama.ts" license = "MIT" [[commands.subcommand]] path = ["run"] label = "Run a model" description = "Chat with a model." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/ollama.ts" license = "MIT" [[commands.subcommand.field]] id = "model" label = "Model" description = "Model name, for example llama3.2." type = "string" position = 0 sources = ["fig"] [[commands.subcommand.field]] id = "verbose" label = "Verbose" description = "Show timings and token statistics." type = "boolean" option = ["--verbose"] sources = ["fig"] [[commands.subcommand.task]] id = "run" label = "Run a model" fields = ["model", "verbose"] required = ["model"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["model", "verbose"] [[commands.subcommand]] path = ["show"] label = "Show model info" description = "Show information for a model." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/ollama.ts" license = "MIT" [[commands.subcommand.field]] id = "model" label = "Model" description = "Model name, for example llama3.2." type = "string" position = 0 sources = ["fig"] [[commands.subcommand.task]] id = "show" label = "Show a model" fields = ["model"] required = ["model"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["model"] [[commands.subcommand]] path = ["rm"] label = "Remove a model" description = "Delete a local model." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/ollama.ts" license = "MIT" [[commands.subcommand.field]] id = "model" label = "Model" description = "Model name, for example llama3.2." type = "string" position = 0 effect = "delete" sources = ["fig"] [[commands.subcommand.task]] id = "rm" label = "Remove a model" fields = ["model"] required = ["model"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["model"]