{"id":16686944,"url":"https://github.com/paralin/claude","last_synced_at":"2025-03-13T16:23:37.877Z","repository":{"id":238048087,"uuid":"795761306","full_name":"paralin/claude","owner":"paralin","description":"Extremely basic CLI for Claude Opus.","archived":false,"fork":false,"pushed_at":"2024-05-04T04:09:26.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T22:48:32.254Z","etag":null,"topics":["litellm"],"latest_commit_sha":null,"homepage":"","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/paralin.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}},"created_at":"2024-05-04T01:44:14.000Z","updated_at":"2024-05-04T04:09:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"b89d643a-f764-4bb6-9986-6a8ec8b7ff11","html_url":"https://github.com/paralin/claude","commit_stats":null,"previous_names":["paralin/claude"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fclaude","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fclaude/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fclaude/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fclaude/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paralin","download_url":"https://codeload.github.com/paralin/claude/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243438977,"owners_count":20291057,"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":["litellm"],"created_at":"2024-10-12T15:07:18.031Z","updated_at":"2025-03-13T16:23:37.859Z","avatar_url":"https://github.com/paralin.png","language":"Python","readme":"# Claude CLI\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nA command-line interface for interacting with Anthropic's Claude Opus AI model.\n\n## Installation\n\n1. Clone the repository or download the `claude` script.\n\n```\nwget -O ./claude https://raw.githubusercontent.com/paralin/claude/master/claude\n```\n\n2. Make the script executable:\n\n```\nchmod +x claude\n```\n\n3. (optional) Move the script to a directory in your PATH, e.g.:\n\n```\ncp claude ~/.local/bin/\n```\n\n## Usage\n\nSet your Anthropic API key as an environment variable:\n\n```\nexport ANTHROPIC_API_KEY=your_api_key_here\n```\n\nTo use the CLI, simply run the `claude` command followed by your input text:\n\n```\n./claude\nRewrite this program correctly: \u003ccode\u003estdos.stdout.logthis(\"hello world\")\u003c/code\u003e\n```\n\nThen press ctrl+d to end the input.\n\nYou can also pipe input to the script:\n\n```\necho \"Hello, how are you?\" | claude\n```\n\nOr a file:\n\n```\ncat prompt.txt | claude\n```\n\nIf you're feeling brave:\n\n```\necho \"Show me what is in my home directory.\" | claude bash | bash\n```\n\n\n### Templates\n\nThe script supports predefined templates. To use a template, pass its name as the first argument:\n\n```\nclaude spanish \"Hello, how are you?\"\n```\n\nAvailable templates:\n\n- `spanish`: Translates the input text to Spanish (basic example).\n- `bash`: Output an executable bash script from the input.\n\n## Acknowledgements\n\n- [Anthropic](https://www.anthropic.com/) for creating the Claude AI model.\n- [litellm](https://github.com/kaiokendev/litellm) for the Python library to interact with the Anthropic API.\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparalin%2Fclaude","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparalin%2Fclaude","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparalin%2Fclaude/lists"}