co-env

co-env is a skill for Claude Code, Codex from openonion/connectonion. It costs 91 tokens per session (1,488 once invoked), scanned A, original, Apache-2.0.

A command-line tool for viewing and changing the environment file selected by the co command. Environment files store settings such as API keys and account connection details.

In plain words
What is it for?
Use it to inspect the active environment file, read or change a setting, connect accounts, or work with a specific environment-file path.
Why use it?
It helps find which settings file a command uses and update or remove values without editing the file by hand.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect the active environment file, read or change a setting, connect accounts, or work with a specific environment-file path.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openonion/connectonion/co-env
About the project

ConnectOnion is an open-source, template-first toolkit for building, debugging, deploying, and operating AI agents. Developers use its command-line tools and Python runtime to create agents, add tools, connect services, deploy them, and make them callable by other agents, while the catalogue entries are related agents, skills, and instructions.

openonion/connectonion · 1,568 stars · on GitHub · docs.connectonion.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add openonion/connectonion --skill co-env
Clone the repo
git clone --depth 1 https://github.com/openonion/connectonion

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for co-env

README.md
[![agentmods](https://agentmods.dev/badge/skills/openonion/connectonion/co-env/github.svg)](https://agentmods.dev/skills/openonion/connectonion/co-env)
Your own site
<a href="https://agentmods.dev/skills/openonion/connectonion/co-env"><img src="https://agentmods.dev/badge/skills/openonion/connectonion/co-env/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for co-env

Your own site · 80×15
<a href="https://agentmods.dev/skills/openonion/connectonion/co-env"><img src="https://agentmods.dev/badge/skills/openonion/connectonion/co-env.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,488 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00091 $0.01488
Opus 5.5 $0.00036 $0.00595
Sonnet 5.5 $0.00018 $0.00298
Haiku 4.5 $0.00009 $0.00149

Measured 1mo ago against content hash 894ac0ea58a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

co-env scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

connectonion/useful_skills/co-env/SKILL.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

co env

Always read the output, not just the exit code. co env path and co env get print a bare value and no tip, so they compose with $(...); other human-output commands end with one Next: line. JSON output contains its next command as a field.

Which command

You want to Run
See which file is in use and what it holds (all values hidden) co env
See full values (never paste into shared logs) co env show --reveal
The file's path, for a script co env path
One value as a command would see it (whole provider record, otherwise process then file) co env get KEY
Save a setting, creating the file if needed co env set KEY VALUE
Save one that should not sit in the file in plain text co env set KEY VALUE --secret
Change which key opens a stored secret co env rotate KEY
Remove a setting co env unset KEY
Connect a Google / Microsoft account co auth google / co auth microsoft — not co env set
Use a Feishu/Lark app id or secret copied from the Developer Console co env set LARK_APP_SECRET VALUE --from-console
Disconnect one from this file co env unset GOOGLE_EMAIL (removes the whole record)
Do any of this on a project file co --env-file /abs/path/.env env … (selector before env)

The 80% commands

co env                                   # file, settings, sources, next step
co env set OPENAI_API_KEY "$KEY"         # quote values; spaces are fine
co env get MODEL                         # bare value
co --env-file ./project.env env set MODEL co/gemini-3.7-flash

Gotchas that change a result

  • SOURCE column. process (overrides file) means the shell exports the same name; the file's value is not what commands see. set still saves it and prints the unset KEY you need in the shell.
  • Provider records are all-or-nothing. set refuses the five GOOGLE_* and five MICROSOFT_* account fields (exit 2, names the auth command). unset on any one of them removes all of them and says so.
  • AGENT_CONFIG_PATH cannot be set here. It chooses which directory is read; set refuses it and prints the shell export to use.
  • A broken file stops everything else. Any other command exits 2 with <file>: invalid syntax on line N. Next: co env. co env still runs, repeats the line number, never the line, and refuses set until the line is fixed in an editor.
  • Nothing here selects a file. co env shows the file the invocation already chose. To switch, put --env-file before the command.
  • --secret changes where a value rests, not what get returns. The value is encrypted at .co/keys/secrets/<name>.enc; co env get KEY still prints it plainly, because it is the substitution form (export K=$(co env get K)) and a redacted answer would be a wrong one. co env show is the browsing command and redacts by default.
  • The encrypted store is consulted last — after the process environment and the file — so storing a name that is already set elsewhere changes nothing about what commands see. set --secret says so when your shell exports it.
  • A stored secret is unlocked by this agent's own key, derived from .co/keys/agent.key. Nothing is written to hold it, so there is nothing extra to back up; your recovery phrase reaches it on another machine. Deleting .co/keys/recovery.txt does not orphan it. Deleting agent.key does.
  • rotate re-encrypts at the next index and keeps the value. What changes is which key opens it; anything holding the previous ciphertext can no longer read it. It is not a way to change the value — use set for that.
  • Feishu/Lark app credentials are refused by default and named co auth feishu / co auth lark, because a hand-typed app secret has no source this command can check. --from-console is the way in when you already keep the application in the Developer Console. It is accepted on those names only; anywhere else it is an error, not a no-op.

Read the full file on GitHub · 84 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +91 tokens per session 894ac0ea58a6
  2. 2mo ago Changed · +23 lines 884dea4fe1b0
  3. 2mo ago First seen · 61 lines · 0 tokens per session scan A 5e9445263e24

Subscribe to this mod's changes

co-env is a skill published in the GitHub repository openonion/connectonion (1,568 stars, last pushed yesterday), licensed Apache-2.0. It adds 91 tokens to every session and 1,488 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-09.

Related

co-env compared with skills from other repositories

co-env next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
co-envopenonion/connectonionSkill1.6kyesterdayApache-2.0A91Claude Code, Codex
agent-lightningmicrosoft/agent-lightningSkill19k7d agoMITA43Claude Code
agentscope-javaagentscope-ai/agentscope-javaSkill6.6ktodayApache-2.0A91Claude Code, Codex
apply-patchagentscope-ai/agentscope-javaSkill6.6ktodayApache-2.0A38Claude Code, Codex
git-checkpointagentscope-ai/agentscope-javaSkill6.6ktodayApache-2.0A39Claude Code, Codex
company-employeePrism-Shadow/penguin-harnessSkill3.4ktodayApache-2.0A85Claude Code, Codex
web-designPrism-Shadow/penguin-harnessSkill3.4ktodayApache-2.0A51Claude Code, Codex