# EnvsAI > Project-scoped secret delivery for agents and CI. Agents can discover names, exchange recipient-encrypted grants and run a job with selected environment variables. ## Connect - [Agent integration guide](https://envs.ai/agent-secrets.html): working Node.js 20+ setup and command examples. - [Repository installer](https://envs.ai/downloads/envs-init.mjs): creates .envsai/project.json, runtime tools and a local MCP configuration. - [Remote MCP guide](https://envs.ai/chatgpt.html): the ChatGPT integration connects to https://envs.ai/api/mcp with OAuth for read-only metadata from explicitly approved projects. Other MCP clients can launch the generated local stdio server. - [OAuth protected resource](https://envs.ai/.well-known/oauth-protected-resource/api/mcp): discovery metadata for the remote MCP server. ## Agent workflows - [Check a worker credential](https://envs.ai/agent-secrets.html#worker-access): the local live MCP tool check_worker_access takes required_keys (1–100 variable names). It returns available/unavailable names, expiry and envs:// references. Use the credential from the process environment. - [Share a grant](https://envs.ai/agent-secrets.html#handoff): receive prints a five-minute public request. An authorized orchestrator runs share with the requested worker, approved keys and lifetime. Relay the sealed response to the waiting receiver over an authenticated channel. - [Run one local job](https://envs.ai/agent-secrets.html#run): the runtime injects selected values into a trusted child. Use envs-access.mjs run for a local temporary grant that is revoked on exit. - [Activity feed](https://envs.ai/Agents): project owners can inspect the latest 100 attributable grant operations and worker read attempts. It requires a signed-in owner. Keep bearer tokens, private keys and environment values in the runtime's secret store and outside agent messages. An envs:// reference identifies a setting. A scoped credential authorizes the read. ## HTTPS API for runtimes Owner approvals: POST /grant-requests using the submitting parent credential and the proposed scope. Poll GET /grant-requests/{id} with the same parent, project and environment. Once approved, POST /grant-requests/{id}/claim to receive a credential exactly once. Requests expire after ten minutes. CLI run-approved performs one fetch and revokes the grant on exit. [Approval commands](https://envs.ai/agent-secrets.html#approvals) Variables selected for per-use verification require a fresh owner approval with the project's authenticator for each value delivery. For selective reads, GET /variables with project, environment and a comma-separated keys parameter. Check names with /manifest without consuming the approved value read. Only the human owner enters authenticator codes in the workspace. Use https://envs.ai/api/v1 and supply the credential through the Authorization header. For a metadata-only check, GET /manifest with project and environment as query parameters. A delegation-enabled project key can POST /grants with project, environment, agent, keys and ttl_minutes. The grant response contains a bearer credential and belongs in the trusted runtime. DELETE /grants/{id} with project and environment revokes it.