Skip to main content

AgentSecure Community

By ShellFrame AI

PyPI CI License

AgentSecure lets AI coding agents use credentials without exposing the real secret values to the agent.

Why AgentSecure

AI coding agents can access .env files, shell environments, MCP configuration, and local credentials. Ignore files are not a security boundary. AgentSecure keeps real secrets outside the agent's normal project and MCP context.

Quick Start

Run these commands from the project you want to protect.

1. Install AgentSecure

uv tool install agentsecure

2. Optionally scan the project

agentsecure scan .

The scan is local and does not change the project.

3. Run guided setup once

For Claude Code:

agentsecure start --client claude

Follow the printed MCP configuration step, then start Claude Code normally:

claude

For Codex:

agentsecure start --client codex --install-mcp

Then start Codex normally:

codex

agentsecure start is guided one-time project setup. It initializes the project, offers to move .env secrets into the local vault, writes persistent agent guidance, and prints or installs the selected MCP configuration.

It is not a persistent background service. After setup finishes, start Claude Code or Codex normally. You do not normally wrap the agent with agentsecure run.

How It Works

  1. During setup, real secrets are moved into the local AgentSecure vault.
  2. Project files receive aliases or safe placeholders instead of real values.
  3. The coding agent starts and runs normally.
  4. Secret-bearing requests use the AgentSecure MCP tool.
  5. AgentSecure validates the destination and injects the real secret while sending the request outside the agent's context.

Security Boundaries

AgentSecure helps protect against:

  • exposing raw secrets to the coding agent through the default MCP flow;
  • keeping real secrets in agent-readable project files;
  • sending protected secrets to destinations that are not approved by policy.

AgentSecure is not:

  • a complete operating-system sandbox;
  • a VM or container;
  • protection from an attacker who already controls the local user or machine;
  • a replacement for endpoint, identity, network, or cloud security controls.

The local user and machine remain inside the trust boundary. See the security model and limitations for the full threat model.

Documentation

License

Licensed under the Apache License 2.0. See LICENSE.

Metadata

Release files for agentsecure 0.1.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentsecure 0.1.23
File Size Uploaded
agentsecure-0.1.23.tar.gz 139.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentsecure 0.1.23
File Interpreter ABI Platform
agentsecure-0.1.23-py3-none-any.whl Python 3 none any Details

Total release size: 280.4 kB

Release files / agentsecure-0.1.23.tar.gz

Download URL agentsecure-0.1.23.tar.gz
Size 139.2 kB
Tags Source
SHA-256 checksum
How to use checksums
80342478c7d6ae45af14e4d54328ad9515bfbde25652c537c76a08c64153f790
BLAKE2b-256 checksum
How to use checksums
393984d3ff11c181fc53835642931c1b3e888becbb447a81847192f14343bf94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.

Transparency log

Release files / agentsecure-0.1.23-py3-none-any.whl

Download URL agentsecure-0.1.23-py3-none-any.whl
Size 141.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cda330241d616d91d40b3d331dc1ca2225adf2c871e9ea0361ced58d48ad9fef
BLAKE2b-256 checksum
How to use checksums
b6c8cfe528ea04245bafe28b68f9a675f9cbb5c7c101205f72c3e9a037ac00c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.23 This release

2 release files

0.1.22

2 release files

0.1.21

2 release files

0.1.20

2 release files

0.1.19

2 release files

0.1.18

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page