copilot-env
Health Uyari
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Basarisiz
- exec() — Shell command execution in .github/scripts/cost-metrics.ts
- process.env — Environment variable access in .github/scripts/cost-metrics.ts
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Points the Codex and Claude CLIs at GitHub Copilot: a managed copilot-api proxy, or Copilot Direct.
copilot-env
Point the Codex and Claude CLIs at GitHub Copilot: through a local @jeffreycao/copilot-api proxy that copilot-env manages, or straight to Copilot Direct.
TypeScript port of the original Python copilot-api helper. Runs on Linux, macOS, and Windows.
What it does
- Codex + Claude wiring: both CLIs point at the proxy or at Copilot Direct, with
~/.codex/~/.claudewritten for you. - Lifecycle:
start/stopthe proxy yourself, or letdaemon.auto-startrun it on demand and stop it when idle. - Zero setup: one self-contained binary, no runtime or package manager first. The proxy is fetched on first use, never installed globally.
- One credential per setup:
agent profile authholds the GitHub Copilot token (device flow,ghCLI, or a stored PAT), plus one slot per profile. - Named profiles:
agent profilebundles one credential and one mode into both agents, so several sessions run at once. - Typed preferences:
agent configgets and sets every knob under one precedence rule everywhere. - Web search on Direct: Claude Code's builtin WebSearch is replaced by copilot-env's MCP
web_searchtool. - Cost reporting: estimated spend from the proxy usage DBs plus the Codex and Claude session logs.
- Controlled floating: the proxy floats to the newest cooldown-aged release; every other dependency is pinned via
bun.lock.
Requirements
- A GitHub account with Copilot access.
agent profile authstores the credential: device flow, yourghlogin, or a token. - Linux, macOS, or Windows. Nothing else first: the install is one self-contained binary, and on Windows the installer needs only Windows PowerShell 5.1 or pwsh 7.
- The Claude and Codex CLIs, or let
agent shell --clisinstall them through their vendors' own installers (no Node.js or npm).
Quick start
# macOS / Linux
curl -fsSL https://github.com/Vivswan/copilot-env/releases/latest/download/install.sh | bash
# Windows (runs from any shell -- cmd, PowerShell, or the Run dialog)
powershell -c "irm https://github.com/Vivswan/copilot-env/releases/latest/download/install.ps1 | iex"
Then, in a new shell:
agent shell --clis # install the Claude, Codex, and Copilot CLIs (the add probes Direct through them, or at the endpoint without them)
agent profile add # wire Codex + Claude to GitHub Copilot
agent start # run the local proxy (only if the add picked it)
Install from a release, not main. Why, the flags, a pinned version, and what the installer writes are on the getting started page.
Documentation
The docs index lists every page by task. Start with Getting started.
Development
git clone https://github.com/Vivswan/copilot-env.git
cd copilot-env
bash scripts/setup-env.sh
bun run test:unit
Development covers the tasks and the env init; CONTRIBUTING.md covers how to submit a change; AGENTS.md holds the rules.
License
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi