{"id":17442793,"url":"https://github.com/ariya/nano-jarvis","last_synced_at":"2025-08-13T21:39:38.257Z","repository":{"id":238051333,"uuid":"795768482","full_name":"ariya/nano-jarvis","owner":"ariya","description":"Interact with any LLM service","archived":false,"fork":false,"pushed_at":"2024-07-10T01:32:40.000Z","size":28,"stargazers_count":7,"open_issues_count":0,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T09:04:07.332Z","etag":null,"topics":["anyscale","chatbot","deepinfra","fireworks","generative-ai","gpt","groq","llama","llm","localai","mistral","ollama","openai","openrouter","phi","together"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/ariya.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-04T02:25:25.000Z","updated_at":"2024-12-01T01:29:13.000Z","dependencies_parsed_at":"2024-05-04T03:24:53.789Z","dependency_job_id":"1f2f2d78-480d-405c-8f32-eb0babb7f6dd","html_url":"https://github.com/ariya/nano-jarvis","commit_stats":null,"previous_names":["ariya/nano-jarvis"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariya%2Fnano-jarvis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariya%2Fnano-jarvis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariya%2Fnano-jarvis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariya%2Fnano-jarvis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ariya","download_url":"https://codeload.github.com/ariya/nano-jarvis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233073835,"owners_count":18621027,"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":["anyscale","chatbot","deepinfra","fireworks","generative-ai","gpt","groq","llama","llm","localai","mistral","ollama","openai","openrouter","phi","together"],"created_at":"2024-10-17T16:33:23.758Z","updated_at":"2025-01-08T17:49:14.838Z","avatar_url":"https://github.com/ariya.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nano Jarvis\n\n![Screenshot](nano-jarvis.png)\n\nNano Jarvis is compatible with either a cloud-based (managed) LLM service (e.g. [OpenAI GPT model](https://platform.openai.com/docs), [Grog](https://groq.com), [OpenRouter](https://openrouter.ai), etc) or with a locally hosted LLM server (e.g. [llama.cpp](https://github.com/ggerganov/llama.cpp), [LocalAI](https://localai.io), [Ollama](https://ollama.com), etc). Please continue reading for detailed instructions.\n\nRequirement: [Node.js](https://nodejs.org) v18 or later.\n\nLaunch with:\n```\n./nano-jarvis.js\n```\nthen open `localhost:5000` with your favorite web browser.\n\n## Using Local LLM Servers\n\nSupported local LLM servers include [llama.cpp](https://github.com/ggerganov/llama.cpp), [Jan](https://jan.ai), [Ollama](https://ollama.com), and [LocalAI](https://localai.io).\n\nTo utilize [llama.cpp](https://github.com/ggerganov/llama.cpp) locally with its inference engine, ensure to load a quantized model such as [Gemma 2B](https://huggingface.co/LiteLLMs/gemma-2b-it-GGUF), [Phi-3 Mini](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-gguf), or [LLama-3 8B](https://huggingface.co/QuantFactory/Meta-Llama-3-8B-Instruct-GGUF). Adjust the environment variable `LLM_API_BASE_URL` accordingly:\n```bash\nllama-server --hf-repo LiteLLMs/gemma-2b-it-GGUF --hf-file Q4_0/Q4_0-00001-of-00001.gguf\nexport LLM_API_BASE_URL=http://127.0.0.1:8080/v1\n```\n\nTo use [Jan](https://jan.ai) with its local API server, refer to [its documentation](https://jan.ai/docs/local-api) and load a model like [Phi-3 Mini](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-gguf) or [LLama-3 8B](https://huggingface.co/QuantFactory/Meta-Llama-3-8B-Instruct-GGUF) and set the environment variable `LLM_API_BASE_URL`:\n```bash\nexport LLM_API_BASE_URL=http://127.0.0.1:1337/v1\nexport LLM_CHAT_MODEL='llama3-8b-instruct'\n```\n\nTo use [Ollama](https://ollama.com) locally, load a model and configure the environment variable `LLM_API_BASE_URL`:\n```bash\nollama pull phi3\nexport LLM_API_BASE_URL=http://127.0.0.1:11434/v1\nexport LLM_CHAT_MODEL='phi3'\n```\n\nFor [LocalAI](https://localai.io), initiate its container and adjust the environment variable `LLM_API_BASE_URL`:\n```bash\ndocker run -ti -p 8080:8080 localai/localai tinyllama-chat\nexport LLM_API_BASE_URL=http://localhost:3928/v1\n```\n\n## Using Managed LLM Services\n\nTo use [OpenAI GPT model](https://platform.openai.com/docs), configure the environment variable `OPENAI_API_KEY` with your API key:\n```bash\nexport OPENAI_API_KEY=\"sk-yourownapikey\"\n```\n\nTo use [OpenRouter](https://openrouter.ai/), select a model (e.g. [Mistral 7B](https://openrouter.ai/models/mistralai/mistral-7b-instruct), [LLama-3 8B](https://openrouter.ai/models/meta-llama/llama-3-8b-instruct), [OpenChat 3.6](https://openrouter.ai/models/openchat/openchat-8b), etc) and set the environment variables accordingly.\n```bash\nexport LLM_API_BASE_URL=https://openrouter.ai/api/v1\nexport LLM_API_KEY=\"yourownapikey\"\nexport LLM_CHAT_MODEL=\"meta-llama/llama-3-8b-instruct\"\n```\n\nNano Jarvis is also compatible with [Anyscale](https://www.anyscale.com), [Deep Infra](https://deepinfra.com), [Fireworks](https://fireworks.ai), [Groq](https://groq.com), [Lepton](https://lepton.ai), [Novita](https://novita.ai), [Octo](https://octo.ai), and [Together](https://www.together.ai). For details on how to configure the environment variables for each of these services, refer to the documentation of the sister project, [Ask LLM](https://github.com/ariya/ask-llm).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariya%2Fnano-jarvis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fariya%2Fnano-jarvis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariya%2Fnano-jarvis/lists"}