# hyperupcall/autoenv

Directory-based environments.

Repository: https://github.com/hyperupcall/autoenv
Canonical: https://ross.abutalabs.com/products/autoenv
Language: Shell
License: MIT
License Family: permissive
Topics: environment, cd, shell-extension, shell-scripts, bash, zsh, shell, shell-script, terminal
Last push: 2025-11-20T09:05:30+00:00

## Health v2 (maintenance only)
Score: 47/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 53, release rhythm 8, longevity 100
- inputs: {"age_days": 5316, "days_push": 286, "days_rel": 512, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6048, forks 271 (observed 2026-08-28T04:09:34.598361+00:00)

## What it is
Autoenv is a shell extension written in Shell that automatically executes `.env` files when you `cd` into a directory and `.env.leave` files when you leave it. It enables magic per-project shell environments, such as auto-activating virtualenvs and setting project-specific environment variables, with support for nested environments.

## Use cases
- automatically activate a python virtualenv when entering a project directory
- automatically deactivate a virtualenv when leaving a project directory
- set project-specific environment variables on cd
- run setup scripts automatically when entering a folder
- manage nested directory-based environments
- load per-project shell configuration in bash or zsh

## When to choose
- you want directory-based environment activation triggered by cd in bash or zsh
- you need simple per-project env vars or virtualenv auto-activation without extra tooling
- you want a lightweight, mature shell script with no runtime dependencies

## When to avoid
- you need declarative env file loading without executing arbitrary shell code
- you want cross-shell support beyond bash/zsh
- you prefer containerized or direnv-style sandboxed environment management

## Facets
- artifact type: cli-tool
- maturity: stable
- function: developer-tools, cli, configuration-management
- domain: developer-tools
- platform: cli
- tags: shell-environments, dotenv, per-project-env, cd-hook, shell-extension, command-line, automation, linux, macos, bash, zsh

## Member repositories
- hyperupcall/autoenv (main) score 47

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:34.598361+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:48:56.439509+00:00, confidence not recorded.
  - readme: https://github.com/hyperupcall/autoenv (fetched 2026-08-28T04:09:34.598361+00:00, sha 99aab76ffdc1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
