russia-hacks
Skill7 starsChanged 4 months agoMITView on GitHub
Настройка прокси и работа с API из России: конфиги, подключения, альтернативы заблокированным сервисам.
- Reads credentials
- Installs packages
In this repository23 other files it gives its agents.
- content-pipelineSkill
- adaptive-loopsSkill
- api-cost-trackerSkill
- memory-compactorSkill
- memory-guardianSkill
- post-mortem-analyzerSkill
- reflexive-trigger-boostSkill
- skill-trigger-systemSkill
- agent-communicationSkill
- auto-qa-gatesSkill
- cost-aware-orchestratorSkill
- decision-frameworkSkill
- GitHub Publish WorkflowSkill
- harvest-usageSkill
- network-restricted-hermesSkill
- omniroute-masterySkill
- reflection-qaSkill
- self-hosted-aiSkill
- session-hygiene-plusSkill
- telegram-bot-patternsSkill
- tool-proficiency-trackerSkill
- trading-bot-deploymentSkill
- security-auditSkill
The file
Files
Russia — Настройка прокси и работа с API
Активировать: когда нужен доступ к API или сервису из России.
Цель: Работать с любыми API и сервисами через локальный прокси.
Сетевая среда
В России ряд сервисов имеют ограничения на доступ. Решение — локальный прокси-сервер (HTTP/SOCKS5), через который маршрутизируются все запросы.
Конфигурация прокси
# Типичная конфигурация (Hysteria 2 или аналогичный прокси-сервер)
socks5:
listen: 127.0.0.1:1081
http:
listen: 127.0.0.1:1082Использование в коде
import httpx
proxy = "http://127.0.0.1:1082"
async with httpx.AsyncClient(proxy=proxy) as client:
response = await client.get("https://api.example.com/v1/models")# curl
curl -x http://127.0.0.1:1082 https://api.example.com/v1/models
# npm/node
export HTTP_PROXY=http://127.0.0.1:1082
npm install
# git
git config --global http.proxy http://127.0.0.1:1082Альтернативы заблокированным сервисам
| Заблокирован | Альтернатива | Как использовать |
| OpenAI API | Zhipu GLM-4 | GLM_API_KEY через OmniRoute |
| OpenAI API | DeepSeek | DEEPSEEK_API_KEY |
| OpenAI API | Kimi/Moonshot | KIMI_API_KEY |
| Twitter API | Nitter | Временное решение |
| GitHub (частично) | Прокси | git config --global http.proxy http://127.0.0.1:1082 |
| Anthropic | OmniRoute | localhost:3000 |
Правила
- НИКОГДА не удаляй
HTTP_PROXYиз systemd-сервисов — без прокси соединения могут обрываться - НИКОГДА не создавай бриджи/прокси — они умирают и ломают OmniRoute
- ВСЕГДА проверяй статус прокси перед запросами
- ВСЕГДА используй
localhost:1082(HTTP) илиlocalhost:1081(SOCKS5) - Если что-то сломалось — проверь порты, логи, статус сервисов
Диагностика
# Проверь что прокси работает
curl -x http://127.0.0.1:1082 https://httpbin.org/ip
# Проверь порты
ss -tlnp | grep -E "1081|1082"
# Проверь логи прокси
journalctl --user -u hysteria -fDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

