{"id":22982796,"url":"https://github.com/cxmrykk/palm-cli","last_synced_at":"2025-08-13T18:34:00.429Z","repository":{"id":189274215,"uuid":"679077922","full_name":"Cxmrykk/Palm-CLI","owner":"Cxmrykk","description":"CLI for PaLM API (Text Generation)","archived":false,"fork":false,"pushed_at":"2023-08-30T09:47:20.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-08-30T16:21:03.231Z","etag":null,"topics":["ai","chatbot","cli","google","large-language-models","linux","llm","machine-learning","palm","palm-api"],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/Cxmrykk.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}},"created_at":"2023-08-16T03:52:55.000Z","updated_at":"2023-08-28T01:11:04.000Z","dependencies_parsed_at":"2023-08-20T16:30:27.197Z","dependency_job_id":null,"html_url":"https://github.com/Cxmrykk/Palm-CLI","commit_stats":null,"previous_names":["cxmrykk/palm-cli"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cxmrykk%2FPalm-CLI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cxmrykk%2FPalm-CLI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cxmrykk%2FPalm-CLI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cxmrykk%2FPalm-CLI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cxmrykk","download_url":"https://codeload.github.com/Cxmrykk/Palm-CLI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229777190,"owners_count":18122462,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ai","chatbot","cli","google","large-language-models","linux","llm","machine-learning","palm","palm-api"],"created_at":"2024-12-15T02:33:01.659Z","updated_at":"2024-12-15T02:33:02.373Z","avatar_url":"https://github.com/Cxmrykk.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e~ Palm ~\u003c/h1\u003e\r\n\u003cp align=\"center\"\u003eCLI for PaLM API (Text Generation)\u003c/p\u003e\r\n\r\n### Installing\r\n**Using `apt` (Debian-based distros)**\r\n1. Import the public key to `/usr/share/keyrings`\r\n```sh\r\nsudo curl -o /usr/share/keyrings/cxmrykk-archive-keyring.gpg https://repo.merrick.cam/pub.gpg\r\n```\r\n2. Save the repository to `/etc/apt/sources.list.d/`\r\n```sh\r\necho \"deb [arch=amd64 signed-by=/usr/share/keyrings/cxmrykk-archive-keyring.gpg] http://repo.merrick.cam/ stable main\" \\\r\n    | sudo tee /etc/apt/sources.list.d/cxmrykk.list\r\n```\r\n3. Update \u0026 install\r\n```sh\r\nsudo apt update \u0026\u0026 sudo apt install palm\r\n```\r\n\r\n### Building\r\nMake sure `crystal` and `git` are installed on the user's system.\r\n```sh\r\ngit clone https://github.com/Cxmrykk/Palm-CLI.git\r\ncd Palm-CLI\r\ncrystal build ./src/palm.cr\r\n```\r\nThis will produce a binary named `palm` in the current directory.\r\n\r\n### Executing\r\n```\r\nUsage: palm {flag} [prompt]\r\n    -h, --help                       Shows this message\r\n    -v, --version                    Prints the current version\r\n    -c, --config-path                Prints the path to the configuration file\r\n    -l, --history-path               Prints the path to the history file\r\n    -a, --api-path                   Prints the path to the api configuration file\r\n    -f, --forget                     Forgets the existing conversation (Resets history)\r\n```\r\n\r\n### Configuration\r\nUpon first execution, the program will generate a directory in the home folder with three files: `config.json`, `history.json` and `api.json`. Before using the program you will need to supply a valid API key to `api.json`, which you can obtain here: [https://developers.generativeai.google/](https://developers.generativeai.google/)\r\n\r\n### Example\r\n```sh\r\npalm \"What is the capital of France?\"\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxmrykk%2Fpalm-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcxmrykk%2Fpalm-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxmrykk%2Fpalm-cli/lists"}