{"id":48581303,"url":"https://github.com/guelfoweb/ollamactl","last_synced_at":"2026-04-08T17:01:12.358Z","repository":{"id":334396165,"uuid":"1141223712","full_name":"guelfoweb/ollamactl","owner":"guelfoweb","description":"CLI tool to interact with Ollama local and cloud backends.","archived":false,"fork":false,"pushed_at":"2026-01-24T18:43:07.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-25T01:37:55.115Z","etag":null,"topics":["client","cloud","local","ollama","terminal"],"latest_commit_sha":null,"homepage":"https://github.com/guelfoweb/ollamactl/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guelfoweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-24T13:34:16.000Z","updated_at":"2026-01-24T18:43:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"3269e899-8532-453a-8b13-8e732795b152","html_url":"https://github.com/guelfoweb/ollamactl","commit_stats":null,"previous_names":["guelfoweb/ollamactl"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/guelfoweb/ollamactl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guelfoweb%2Follamactl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guelfoweb%2Follamactl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guelfoweb%2Follamactl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guelfoweb%2Follamactl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guelfoweb","download_url":"https://codeload.github.com/guelfoweb/ollamactl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guelfoweb%2Follamactl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31564915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","cloud","local","ollama","terminal"],"created_at":"2026-04-08T17:01:11.619Z","updated_at":"2026-04-08T17:01:12.349Z","avatar_url":"https://github.com/guelfoweb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ollamactl\n\n`ollamactl` is a command-line tool to interact with **Ollama local instances** and **Ollama Cloud** using a **profiles-based** approach.\n\nThe core idea is simple:\n\n- each **profile** represents a complete configuration (backend, model, options)\n- you can create **multiple profiles**\n- each terminal can use a different profile\n- profiles can be chained together using standard Unix pipes\n\nThis makes it easy to make **different models talk to each other**, or to run the same prompt against different backends.\n\n---\n\n## What ollamactl can do\n\n- talk to **local Ollama** instances\n- talk to **Ollama Cloud**\n- manage multiple **profiles**\n- run chat queries from:\n  - command line\n  - stdin\n  - instruction files\n- override parameters (like temperature) at runtime\n- compose multiple models using pipes\n\nThere are **no background services**, **no agents**, and **no hidden state**.\n\n---\n\n## Requirements\n\n- Python \u003e= 3.9\n- Ollama installed (for local profiles)\n- Ollama Cloud [API KEY](https://ollama.com/settings/keys) (for cloud profiles)\n\n---\n\n## Installation\n\n### Development (editable)\n\n```bash\npip install -e .\n```\n\n### Production (recommended, with pipx)\n\n```bash\npipx install .\n```\n\nOr from GitHub:\n\n```bash\npipx install git+https://github.com/guelfoweb/ollamactl.git\n```\n\n---\n\n## The profiles concept\n\nA **profile** is a JSON file that defines:\n\n- backend (`local` or `cloud`)\n- model name\n- connection details (host or API key)\n- default options (for example temperature)\n\nProfiles are stored in:\n\n```text\n~/.ollama_cli/profiles/\n```\n\nEach profile is independent.\n\n---\n\n## Managing profiles\n\n### List profiles\n\n```bash\nollamactl profile list\n```\n\n### Create a new profile (interactive)\n\n```bash\nollamactl profile init NAME\n```\n\nYou will be asked:\n\n1. local or cloud\n2. connection details\n3. model selection\n\n### Show a profile\n\n```bash\nollamactl profile show NAME\n```\n\n(API keys are masked)\n\n### Remove a profile\n\n```bash\nollamactl profile remove NAME\n```\n\n---\n\n## Basic chat usage\n\n### Use a profile with an inline prompt\n\n```bash\nollamactl --profile local \"who are you?\"\n```\n\n### Use stdin as input\n\n```bash\necho \"long text\" | ollamactl --profile cloud \"summarize it\"\n```\n\n### Interactive mode\n\n```bash\nollamactl --profile local\n\u003e\u003e explain TCP briefly\n```\n\n---\n\n## Instruction files (-f / --file)\n\nThe `-f` option lets you store **instructions** in a file.\n\nIn this mode:\n- the file contains *what to do*\n- stdin contains *what to operate on*\n\n### Example\n\n```bash\ncat script.py | ollamactl --profile local -f prompt.txt\n```\n\n`prompt.txt`:\n\n```text\nAnalyze the following code line by line.\nExplain what each function does.\n```\n\nThe model receives:\n\n```\n\u003cinstructions from file\u003e\n\nINPUT:\n\u003ccontent from stdin\u003e\n```\n\n---\n\n## Temperature\n\nEach profile has a default temperature.\n\nYou can override it at runtime:\n\n```bash\nollamactl --profile cloud --temperature 0.2 \"explain TCP\"\n```\n\n- lower values = more deterministic\n- higher values = more variation\n\nOverrides are **not saved**.\n\n---\n\n## Web search (cloud only)\n\n```bash\nollamactl --profile cloud websearch \"latest linux kernel vulnerabilities\"\n```\n\nIf used with a local profile, the command exits with a clear error.\n\n---\n\n## Making models talk to each other\n\nBecause `ollamactl` uses stdin/stdout, profiles can be chained:\n\n```bash\nollamactl --profile local \"analyze this code\" \\\n| ollamactl --profile cloud \"summarize the findings\"\n```\n\nThis is intentional and follows standard Unix composition.\n\n---\n\n## Configuration and security\n\n- profiles are stored as plain JSON files\n- API keys are stored locally\n- file permissions are restricted (`600`)\n- no keyring or encryption is used by default\n\n---\n\n## Design philosophy\n\n- profiles instead of global state\n- explicit over implicit\n- stdin/stdout as the composition mechanism\n- no automatic agents\n- no background processes\n\n`ollamactl` is designed to be predictable, scriptable, and easy to reason about.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguelfoweb%2Follamactl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguelfoweb%2Follamactl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguelfoweb%2Follamactl/lists"}