{"id":33185719,"url":"https://github.com/ginschel/classis","last_synced_at":"2025-11-22T04:01:36.713Z","repository":{"id":184208224,"uuid":"671485210","full_name":"ginschel/classis","owner":"ginschel","description":"Easy to use command line assistant using OpenAssistant's model API","archived":false,"fork":false,"pushed_at":"2023-07-31T08:24:41.000Z","size":442,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-21T06:33:13.079Z","etag":null,"topics":["api","api-client","bash","chatgpt","chatgpt-api","command-line","command-line-tool","huggingface","language-model","linux","open-assistant","python","python3","shell","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ginschel.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}},"created_at":"2023-07-27T12:29:01.000Z","updated_at":"2023-07-28T10:46:55.000Z","dependencies_parsed_at":"2024-01-07T21:22:03.852Z","dependency_job_id":"65796418-5cab-4b60-a096-8a501d82b7ef","html_url":"https://github.com/ginschel/classis","commit_stats":null,"previous_names":["ginschel/classist","ginschel/classis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ginschel/classis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginschel%2Fclassis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginschel%2Fclassis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginschel%2Fclassis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginschel%2Fclassis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ginschel","download_url":"https://codeload.github.com/ginschel/classis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginschel%2Fclassis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285731803,"owners_count":27222214,"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","status":"online","status_checked_at":"2025-11-22T02:00:05.934Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","api-client","bash","chatgpt","chatgpt-api","command-line","command-line-tool","huggingface","language-model","linux","open-assistant","python","python3","shell","shell-script"],"created_at":"2025-11-16T05:00:20.099Z","updated_at":"2025-11-22T04:01:36.702Z","avatar_url":"https://github.com/ginschel.png","language":"Python","funding_links":[],"categories":["\u003ca name=\"productivity\"\u003e\u003c/a\u003eProductivity"],"sub_categories":[],"readme":"# classis - Commandline Assistant\nJust an easy cli for the terminal fans out there who want to access Open Assistant's API through the terminal or want to use the API in their own aplications! \n\n![classis](https://github.com/ginschel/classis/blob/master/classis_1.gif)\n\n\n## Benefits of classis\nThe program is easily extendible and abides the UNIX philosophy. Since it's written in Python it can be used platform independently! You can include it easily in your Python or bash scripts. For instance, you could pipe its output to another program or write its output to a file with a bash script.\n```\nclassis \"Who is Marcus Aurelius?\" | cat\n```\nMoreover, you wont have to rely on your browser to access the API of Open Assistant and you will be able to just use a simple command line prompt which is really comfortable!\n\n## Usage\nIt's quite easy to use. Just write your prompt after classis surrounded by quotation marks and you will be good to go.\n\n```\nclassis \"What is a terminal?\"\n```\nIt will output:\n```\nA terminal is a computer program that allows users to interact with a computer system and perform various tasks. It is typically used to access a computer system over a network, such as the internet, and to execute commands and programs.\n```\nQuite easy to use, isn't it?\n\nIf you want to make more prompts than one, just write -chat after your prompt and you will be able to chat with the API.\n```\nclassis \"What is a terminal?\" -chat\n```\nTo stop the chat, write:\n```\nexit\n```\n## Dependencies\nclassis should normally install out of the box when using the install.sh script under an arch-based distro. Nevertheless, the installer can get into troubles if Python, venv (only on arch-based distros) and pip aren't installed on your computer.\nOther dependencies/Python-Modules that normally should be installed by the install script are:\n - python-dotenv\n - langchain\n - huggingface_hub\n## Installation\n\n### Clone the Repo:\nClone the repository. \n```\ngit clone https://github.com/ginschel/classis.git\n```\n### Run the installation script\nFor arch-based distros:\n```\ncd classis \u0026\u0026 sh install.sh\n```\nFor debian-based distros (Ubuntu, Linux Mint, etc.):\n```\ncd classis \u0026\u0026 sh debian_install.sh\n```\n### HuggingFace API Token \n\nYou will need an API token to run this, get a free HuggingFace API token from [here](https://huggingface.co/settings/tokens)\n\nNow run classis with the -c subcommand and input your token as an argument.\n\n\n```\nclassis -c yourapitoken\n```\nCongratulations classis has been set up on your machine!\n\n## Changing the model\nIn case you want to use another model, change the modelname variable in the #config sction in the python script that is now located in ~/local/bin/classis-files\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fginschel%2Fclassis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fginschel%2Fclassis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fginschel%2Fclassis/lists"}