agentleFS
zad111ak-aizad111ak-ai/hermes-agent-skills/skills/productivity/russia-hacks/SKILL.md

russia-hacks

Skill7 starsChanged 4 months agoMITView on GitHub

Настройка прокси и работа с API из России: конфиги, подключения, альтернативы заблокированным сервисам.

  • Reads credentials
  • Installs packages

The file

Files
SKILL.md

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 APIZhipu GLM-4GLM_API_KEY через OmniRoute
OpenAI APIDeepSeekDEEPSEEK_API_KEY
OpenAI APIKimi/MoonshotKIMI_API_KEY
Twitter APINitterВременное решение
GitHub (частично)Проксиgit config --global http.proxy http://127.0.0.1:1082
AnthropicOmniRoutelocalhost:3000

Правила

  1. НИКОГДА не удаляй HTTP_PROXY из systemd-сервисов — без прокси соединения могут обрываться
  2. НИКОГДА не создавай бриджи/прокси — они умирают и ломают OmniRoute
  3. ВСЕГДА проверяй статус прокси перед запросами
  4. ВСЕГДА используй localhost:1082 (HTTP) или localhost:1081 (SOCKS5)
  5. Если что-то сломалось — проверь порты, логи, статус сервисов

Диагностика

# Проверь что прокси работает
curl -x http://127.0.0.1:1082 https://httpbin.org/ip

# Проверь порты
ss -tlnp | grep -E "1081|1082"

# Проверь логи прокси
journalctl --user -u hysteria -f

Download now (ZIP)

Does 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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.