{"id":27085337,"url":"https://github.com/levonium/llama-chat","last_synced_at":"2026-04-17T01:02:02.254Z","repository":{"id":286243210,"uuid":"960834855","full_name":"levonium/llama-chat","owner":"levonium","description":"A simple command-line and user interface for interacting with local Ollama models.","archived":false,"fork":false,"pushed_at":"2025-04-11T17:15:18.000Z","size":405,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-03T12:57:07.618Z","etag":null,"topics":["ai","ollama"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/levonium.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-04-05T06:49:08.000Z","updated_at":"2025-04-11T17:15:22.000Z","dependencies_parsed_at":"2025-08-25T01:32:48.227Z","dependency_job_id":"2f677d22-c498-4361-9458-24b3d678a81b","html_url":"https://github.com/levonium/llama-chat","commit_stats":null,"previous_names":["levonium/llama-chat"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/levonium/llama-chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levonium%2Fllama-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levonium%2Fllama-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levonium%2Fllama-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levonium%2Fllama-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levonium","download_url":"https://codeload.github.com/levonium/llama-chat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levonium%2Fllama-chat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31910585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["ai","ollama"],"created_at":"2025-04-06T04:25:51.455Z","updated_at":"2026-04-17T01:02:02.195Z","avatar_url":"https://github.com/levonium.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Llama Chat\n\nA simple command-line and user interface for interacting with local [Ollama](https://ollama.com) models.\n\n## Prerequisites\n\nTo use this application, ensure the following:\n\n1. [Ollama](https://github.com/ollama/ollama) is installed.\n2. At least one model is downloaded. Refer to the [Ollama documentation](https://github.com/ollama/ollama) for guidance.\n\n---\n\n## Features\n\n- **Command-Line Interface (CLI):** Interact with AI models directly from the terminal.\n- **User Interface (UI):** A simple web-based interface for chatting with models.\n- **Customizable Options:** Choose models, agents, and response formats.\n- **File Upload Support:** Upload files through both CLI and UI interfaces.\n- **Chat History:** Maintain and continue previous conversations.\n\n---\n\n## User Interface (UI)\n\n![llama-chat-screenshot](https://raw.githubusercontent.com/levonium/llama-chat/refs/heads/main/public/images/llama-chat.jpg)\n\n1. Start the server by running:\n\n```bash\n  php artisan serve\n```\n\n2. Visit the application at `http://127.0.0.1:8000` in your browser.\n3. Start chatting with your preferred model.\n\n---\n\n## Command-Line Interface (CLI)\n\n### Available Commands\n\n#### `llama:chat`\n\nStart a chat session with an AI model.\n\n```bash\nphp artisan llama:chat --model=llama3.2 --agent=\"You are a helpful assistant.\" --upload=filename.txt --i --f\n```\n\n**Options:**\n\n- `--model` - Specify the model to use (default: `llama3.2`).\n- `--agent` - Define the agent's description (default: `You are a helpful assistant.`).\n- `--upload` - Upload a file to the chat session. The file must be placed in the `storage/app/private/cli/` directory.\n- `--i` - Enable interactive mode (default: `false`).\n- `--f` - Return formatted responses (default: `false`).\n\n#### `llama:chat:list`\n\nList and continue previous chat sessions.\n\n```bash\nphp artisan llama:chat:list --limit=10\n```\n\n**Options:**\n\n- `--limit` - Number of recent chats to display (default: `10`).\n\n#### `llama:ask`\n\nAsk a one-off question to an AI model.\n\n```bash\nphp artisan llama:ask --model=llama3.2 --agent=\"You are a helpful assistant.\"\n```\n\n**Options:**\n\n- `--model` - Specify the model to use (default: `llama3.2`).\n- `--agent` - Define the agent's description (default: `You are a helpful assistant.`).\n\n#### `llama:model`\n\nInteractively list models and view model information.\n\n```bash\nphp artisan llama:model\n```\n\nThis command provides an interactive interface to:\n\n- List all available (downloaded) models with their details\n- Show detailed information about a specific model\n\n---\n\n## Installation\n\nFollow these steps to set up the application:\n\n1. Clone the repository:\n\n    ```bash\n    git clone [repository]\n    ```\n\n2. Install dependencies:\n\n    ```bash\n    composer install\n    ```\n\n3. Copy the environment file:\n\n    ```bash\n    cp .env.example .env\n    ```\n\n4. Generate the application key:\n\n    ```bash\n    php artisan key:generate\n    ```\n\n5. Start the server:\n\n    ```bash\n    php artisan serve\n    ```\n\n6. Visit `http://127.0.0.1:8000` in your browser.\n\n---\n\n## Logs\n\nAccess application logs by visiting:\n\n```\nhttp://127.0.0.1:8000/llogs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevonium%2Fllama-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevonium%2Fllama-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevonium%2Fllama-chat/lists"}