agente-local
Provides tools for common Git operations, including checking status, pulling changes, creating branches, committing, merging, and pushing in permitted repositories.
Uses the authenticated GitHub CLI to support repository workflows such as pushing changes and opening pull requests.
Controls a dedicated Chrome browser profile to open and read pages, click, fill forms, send keys, and close the browser, with confirmations for risky actions.
Integrates with local Ollama models to answer simple requests privately, select models based on available GPU memory, and report Ollama status.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agente-local run the tests and commit if they pass"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agente-local
A free AI helper that runs on your own graphics card and does the mechanical work for Claude Code: running tests, git, pull requests, summaries, code review, project search and the browser. Claude gets a short answer instead of thousands of lines, so you spend far fewer tokens.
On the author's PC it has already saved over 370,000 Claude tokens in about 100 tasks.
How it works
Every request climbs a cost ladder and stops at the first step that solves it:
direct command → local model (Ollama) → free cloud AI (OmniRoute, optional) → Claude
free, instant free, private free, needs internet paidClaude talks to the agent through MCP (Model Context Protocol). Inside, a few small agents share the work:
Agent | What it does |
Maestro | Reads each request and sends it to the right agent. |
Gatekeeper (Porteiro) | Answers simple questions locally or on free cloud AI; passes the rest to Claude. |
Memory (Memória) | Indexes your projects and hands Claude only the relevant snippets. |
Reviewer (Revisor) | Runs lint, types and tests; blocks commits with passwords or conflict markers. |
Arm (Braço) | Controls the browser and screen, asking before anything risky. |
Every answer is labelled with where it came from ([Ollama local · model],
[OmniRoute · model]), so you always know who answered.
Related MCP server: claude-token-saver-mcp
Requirements
Minimum | Recommended | |
OS | Linux or Windows 10/11 | Ubuntu 24.04+ / Windows 11 |
GPU | none (CPU works, slowly) | NVIDIA with 8–12 GB |
RAM | 8 GB | 16 GB |
Software | Python 3.10+, Git, Ollama, Claude Code | + Node.js (for OmniRoute), Google Chrome (for the browser tools), GitHub CLI (for PRs) |
agente init picks models that fit your GPU:
GPU memory | Models |
12 GB or more | qwen3:8b, qwen2.5-coder:7b, qwen2.5vl:7b |
8 GB | qwen3:8b, qwen2.5-coder:7b |
6 GB | qwen3:4b, qwen2.5-coder:3b |
CPU only | qwen3:1.7b, qwen2.5-coder:1.5b |
Install
Linux
git clone https://github.com/felipebherve/agente-local.git
cd agente-local
./install.sh # add --voz for the voice shortcut, --sim to accept all defaultsWindows (PowerShell)
git clone https://github.com/felipebherve/agente-local.git
cd agente-local
powershell -ExecutionPolicy Bypass -File .\install.ps1 # -Voz, -SimThe installer installs what is missing (Ollama; on Windows also Python and Git through
winget), creates the agent's environment, downloads the models, writes config.yaml,
registers the agent in Claude Code and Claude Desktop and creates an Agente local
shortcut that opens the panel in your browser.
Something wrong? Run agente doctor (Windows: .venv\Scripts\agente.exe doctor).
Connect your accounts
The agent never stores passwords. It uses the logins you already have:
Claude: sign in to Claude Code as usual. The agent is just an MCP tool inside it.
GitHub: run
gh auth loginonce. The agent uses it for push and pull requests.OmniRoute (free cloud AI, optional):
npm install -g omnirouteand runomniroute.Open
http://localhost:20128, go to Providers and connect a free provider with your own account (Groq, Gemini, NVIDIA NIM and others offer free tiers).In
config.yaml, setomniroute.ligado: trueand add the model ids underomniroute.modelos, e.g.- groq/llama-3.3-70b-versatile.
Browser: the Arm uses its own Chrome profile. Sign in to sites there once; the logins stay in Chrome, not in the agent.
Use
You do not need to do anything special: Claude Code calls the agent on its own
(agente init adds the instructions to ~/.claude/CLAUDE.md). Some things you can ask:
"run the tests" · "commit this" · "open a draft PR"
"what changed in this project?" · "where is the login handled?"
"review the project before I ship"
Panel (agente-painel or the Agente local shortcut): PC usage, Ollama and
OmniRoute status, switches for each agent, a chat that shows the route of every answer,
microphone, history, savings chart, your projects and a Settings tab to sign in to
Claude and GitHub, pick your OmniRoute models, choose which folders the agent may use
and change the voice shortcut.
Voice (optional, --voz): press Ctrl+Alt+F to start talking and press it again
to send. You can change the shortcut in the panel (Settings).
pedir_ao_agente, perguntar_local, segunda_opiniao, resumir_texto,
resumir_arquivo, rodar_testes, git_status, git_pull, git_criar_branch,
git_commit, git_merge, git_push, abrir_pr, relatorio_economia, status_agente,
contexto_projeto, ler_relevante, indexar_projeto, lembrar, revisar_projeto,
organizar_pasta, navegador_abrir, navegador_ler, navegador_clicar,
navegador_preencher, navegador_tecla, navegador_fechar, janelas_listar,
janela_ler, janela_clicar, janela_digitar, abrir_app, tela_descrever,
tela_clicar, braco_liberar, reiniciar_claude, falar.
Safety and privacy
Reads only the folders in
pastas_permitidasand runs only the commands incomandos_liberados.Asks before submitting forms, logging in, paying, buying, deleting or typing into a password field. To stop the Arm at once, turn off its switch in the panel (on Windows, Ctrl+Alt+P also works).
Web pages can contain text that tries to give the agent orders (prompt injection). Keep the confirmations on.
No telemetry and no server of ours: everything runs on your PC, except what you send to OmniRoute providers or to Claude.
See SECURITY.md to report a problem.
License and disclaimers
MIT © 2026 Felipe Bruno Hervé. Third-party licenses are listed in THIRD_PARTY_NOTICES.md; the optional voice extra uses Piper, which is GPL-3.0.
This is an independent project, not affiliated with Anthropic, Ollama, OmniRoute or GitHub. "Claude" is a trademark of Anthropic. The agent runs commands and clicks on your computer: use it at your own risk, and follow the terms of every AI provider you connect.
The code and comments are in Brazilian Portuguese; the docs are in English and Portuguese. Contributions are welcome: see CONTRIBUTING.md.
Available Tools
37 toolsabrir_appB
Abre um app liberado no config.yaml (ex.: 'bloco de notas', 'calculadora', 'vscode').
Inputs: nome (required). Returns: result
abrir_prB
Envia a branch atual e abre um PR em rascunho com título e descrição gerados localmente.
simular=true só mostra o texto que seria usado, sem enviar nada.
Inputs: pasta (required), base, simular. Returns: result
braco_liberarA
Libera o braço depois da parada de emergência (Ctrl+Alt+P). Só com o OK do usuário.
Inputs: no named parameters. Returns: result
contexto_projetoA
Trechos do projeto mais relevantes para a tarefa, com arquivo e linhas.
Use ANTES de abrir ou procurar arquivos num projeto: em vez de ler pastas inteiras, recebe
só os trechos certos e as decisões e erros já resolvidos (guardados com lembrar).
Atualiza o índice sozinho (só arquivos alterados). pasta: raiz do projeto.
Inputs: pasta (required), tarefa (required), quantos. Returns: result
falarA
Fala o texto em voz alta no alto-falante do PC (voz brasileira local, Piper).
Use quando o usuário pedir para ouvir a resposta. Texto curto: markdown e código são tirados, e mais de ~1200 caracteres é cortado.
Inputs: texto (required). Returns: result
git_commitC
Adiciona todas as mudanças e commita. Sem mensagem, o modelo local escreve uma.
Arquivos sensíveis (.env, chaves) nunca são commitados.
Inputs: pasta (required), mensagem. Returns: result
git_criar_branchC
Cria uma branch nova a partir da atual e muda para ela.
Inputs: nome (required), pasta (required). Returns: result
git_mergeA
Faz merge de 'origem' na branch atual. Em conflito, desfaz e lista os arquivos.
Merge na main/master exige confirmado=true, que só deve ser passado com o OK do usuário.
Inputs: pasta (required), origem (required), confirmado. Returns: result
git_pullA
Atualiza a branch atual (só fast-forward; nunca cria merge nem perde trabalho).
Inputs: pasta (required). Returns: result
git_pushA
Envia a branch atual para o GitHub (nunca com força).
Push direto na main/master exige confirmado=true, só com o OK do usuário.
Inputs: pasta (required), confirmado. Returns: result
git_statusC
Branch, situação com o remoto e arquivos alterados, em poucas linhas.
Inputs: pasta (required). Returns: result
indexar_projetoC
Atualiza o índice de busca do projeto (só reprocessa arquivos alterados).
Inputs: pasta (required). Returns: result
janela_clicarB
Clica num controle da janela pelo número da leitura ou pelo nome (ex.: 'Salvar').
Ações de enviar, apagar, pagar etc. exigem confirmado=true, só com o OK do usuário.
Inputs: alvo (required), titulo (required), confirmado. Returns: result
janela_digitarB
Digita texto na posição do cursor de um campo da janela (não apaga o que já existe).
alvo: número ou nome do campo; vazio usa o campo principal.
Inputs: texto (required), titulo (required), alvo. Returns: result
janela_lerA
Lista os botões, campos e menus de uma janela (parte do título basta), numerados.
Inputs: titulo (required). Returns: result
janelas_listarB
Lista os títulos das janelas abertas no Windows.
Inputs: no named parameters. Returns: result
lembrarA
Guarda uma decisão do projeto (tipo 'decisao') ou um erro e como foi resolvido ('erro').
Volta junto em contexto_projeto quando a tarefa for parecida, para não repetir a conversa. Escreva curto e completo, ex.: 'erro: X falhava por Y; resolvido com Z'.
Inputs: pasta (required), texto (required), tipo. Returns: result
ler_relevanteA
Lê um arquivo grande pela metade do custo: mapa das funções com linhas + só os trechos ligados à tarefa. Use no lugar de abrir o arquivo inteiro quando ele passar de ~150 linhas.
Inputs: tarefa (required), arquivo (required). Returns: result
organizar_pastaA
Levanta uma pasta (inventário, duplicados por hash, sugestão de estrutura via OmniRoute) e grava o relatório em JSON, Markdown e PDF em dados/organizador/.
Só leitura: nunca move, renomeia ou apaga nada. Pasta grande (muitos GB) pode demorar — a duplicata só lê o arquivo inteiro quando o tamanho e um pedaço já bateram.
Inputs: pasta (required). Returns: result
pedir_ao_agenteA
Pedido em português; o Maestro local escolhe quem resolve (Revisor, testes, git, Memória ou o Cérebro para perguntas simples) e devolve a resposta curta.
Chame em toda conversa, antes de trabalhar: o Maestro liga o agente certo (e desliga depois). pasta: projeto (opcional, se o pedido não citar o nome). Se voltar 'PRECISA DO CLAUDE', faça você mesmo; resposta local é de modelo pequeno, confira fatos.
Inputs: pedido (required), pasta. Returns: result
perguntar_localA
Pergunta ao modelo local no PC do usuário (grátis, sem gastar tokens do Claude).
Bom para: explicar um erro, rascunhar texto, gerar código simples. papel: 'codigo' (padrão) ou 'cerebro' (raciocínio geral).
Inputs: pergunta (required), papel. Returns: result
reiniciar_claudeA
Fecha e reabre o Claude Desktop (para carregar ferramentas novas do agente).
A conversa atual é interrompida por uns 10 s. Exige confirmado=true, só com o OK do usuário.
Inputs: confirmado. Returns: result
relatorio_economiaB
Quantos tokens o agente local já poupou (estimativa), por tipo de tarefa.
Inputs: no named parameters. Returns: result
resumir_arquivoA
Lê um arquivo grande no PC do usuário e devolve só um resumo (ex.: log, CSV, código).
Use antes de abrir arquivos longos inteiros. foco: o que procurar no arquivo.
Inputs: caminho (required), foco. Returns: result
resumir_textoA
Resume um texto longo (log, saída de comando, diff) em poucas linhas, localmente.
Prefira esta ferramenta a ler saídas grandes inteiras: só o resumo entra no contexto. foco: o que importa no resumo (ex.: 'quais testes falharam e por quê').
Inputs: texto (required), foco. Returns: result
revisar_projetoA
Revisão local antes da sua: lint, tipos, testes e o que há de suspeito nas alterações (senhas e chaves, marcas de conflito, depuração esquecida, arquivos grandes).
Devolve só os problemas, com arquivo e linha. Use antes de revisar código ou de dar uma tarefa como pronta. testes=False pula os testes; opiniao=True pede ao modelo de código local uma leitura do diff (confira antes de agir).
Inputs: pasta (required), testes, opiniao. Returns: result
rodar_testesA
Roda os testes do projeto (pytest ou npm test) e devolve só contagem, falhas e causa.
Use no lugar de rodar os testes no terminal e ler a saída inteira. pasta: raiz do projeto no PC do usuário.
Inputs: pasta (required). Returns: result
segunda_opiniaoA
Pede uma segunda opinião a um modelo local (grátis), ao estilo do zen-mcp-server.
Use para conferir uma decisão, um trecho de código ou um plano antes de seguir, sem gastar tokens do Claude. papel: 'codigo' (padrão, revisão técnica), 'cerebro' (raciocínio geral) ou 'visao' (se contexto describer algo visual). contexto: código ou texto relevante (opcional). A resposta é de um modelo pequeno: confira antes de agir.
Inputs: pergunta (required), papel, contexto. Returns: result
status_agenteA
Mostra se o Ollama está no ar, os modelos instalados e quanto do PC está em uso.
Inputs: no named parameters. Returns: result
tela_clicarC
Clica em qualquer botão visível pelo nome, procurando em todas as janelas e na barra de tarefas (ex.: 'Claude - 1 janela em execução'). Nome exato é bem mais rápido.
Inputs: alvo (required), confirmado. Returns: result
tela_descreverA
Tira um print e o modelo de visão local descreve em texto (nenhuma imagem para você).
pergunta: o que você quer saber da tela (ex.: 'apareceu alguma mensagem de erro?').
Inputs: pergunta. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 37 tools
Most tools have clearly distinct scopes (git_*, navegador_*, janela_*, índice de projeto), but three tools—pergunta_local, segunda_opiniao and pedir_ao_agente—all delegate to local models with overlapping intent, and three separate click tools (navegador_clicar, janela_clicar, tela_clicar) force the agent to infer which layer a button belongs to. The descriptions do help disambiguate, but an agent must read carefully before choosing. A single Maestro router plus two direct LLM tools is redundant surface.
Most names follow a readable Portuguese resource_action pattern (navegador_abrir, janela_ler, git_status, tela_clicar, contexto_projeto), but this is mixed with verb_noun forms (abrir_pr, abrir_app, ler_relevante, indexar_projeto, resumir_texto) and bare verbs/nouns (lembrar, falar, segunda_opiniao, relatorio_economia, status_agente, braco_liberar). All snake_case and legible, but no single predictable convention.
37 tools is well above the practical ceiling for a single MCP server and requires the agent to scan a long catalog before every action. The breadth (browser, desktop windows, vision, git, project indexing, local LLM, TTS, file organizing) is real but would be better split into domain-specific servers or namespaced groups.
Coverage is impressively broad for a local PC agent: browser and window control, git lifecycle (status/pull/branch/commit/merge/push/PR), project indexing and memory, testing, review, and local-model delegation are all present. The main gap is file writing/editing—there are readers and summarizers (ler_relevante, resumir_arquivo) but no clear tool to create or modify a file's content.
Maintenance
Related MCP Connectors
Give spare Claude Code or Codex usage to open source. Your agent opens pull requests. No money.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Use your own Windows, Mac or Linux computer from ChatGPT, Claude, Cursor or Gemini CLI: run commands, read, write and search files, run long processes. Your computer only makes an outgoing connection (no open ports or VPN). Read-only mode, allowed folders, blocked commands and an action log keep you in control. Free plan available.
Source-checked CLI guides and model-aware planning for Claude Code, Codex, and Grok Build.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables Claude to delegate coding tasks to local Ollama models, reducing API token usage by up to 98.75% while leveraging local compute resources. Supports code generation, review, refactoring, and file analysis with Claude providing oversight and quality assurance.1127AGPL 3.0
- AlicenseAqualityDmaintenanceEnables Claude Code to offload routine code generation and text processing tasks to a local Ollama LLM, saving Cloud API tokens and costs with automatic model selection and security features.11204 npm3Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code to hand off bulk, mechanical, read-heavy tasks to a local model, including agentic loops that can read, write, and run commands sandboxed at zero cloud token cost.MIT
- AlicenseAqualityCmaintenanceEnables Claude Code to offload small coding tasks to local Ollama machines and free or paid AI providers, choosing the cheapest available option while enforcing quotas, budgets, and Claude's final review.11MIT