frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•1y ago
Hi HN,

We built AgentShield, a Python SDK and CLI to add a security checkpoint for AI agents before they perform potentially risky actions like external API calls or executing generated code.

Problem: Agents calling arbitrary URLs or running unchecked code can lead to data leaks, SSRF, system damage, etc.

Solution: AgentShield intercepts these actions:

- guarded_get(url=...): Checks URL against policies (block internal IPs, HTTP, etc.) before making the request.

- safe_execute(code_snippet=...): Checks code for risky patterns (os import, eval, file access, etc.) before execution.

It works via a simple API call to evaluate the action against configurable security policies. It includes default policies for common risks.

Get Started:

Install: pip install agentshield-sdk

Get API Key (CLI): agentshield keys create

Use in Python: from agentshield_sdk import AgentShield # shield = AgentShield(api_key=...) # await shield.guarded_get(url=...) # await shield.safe_execute(code_snippet=...)

Full details, documentation, and the complete README are at <https://pypi.org/project/agentshield-sdk/>

We built this because securing agent interactions felt crucial as they become more capable. It's still early days, and we'd love to get your feedback on the approach, usability, and policies.

Comments

subhampramanik•1y ago
Looks interesting -- Does it work like a wrapper on top of OpenAI specs? Like, can we just replace the OpenAI package with this, and it's fully integrated?
iamsanjayk•1y ago
Hey, thanks for asking! Good question.

AgentShield isn't a wrapper around the OpenAI package, so you wouldn't replace openai with it. Think of AgentShield as a separate safety check you call just before your agent actually tries to run a specific risky action.

So, you'd still use the openai library as normal to get your response (like a URL to call or code to run). Then, before you actually use httpx/requests to call that URL, or exec() to run the code, you'd quickly check it with shield.guarded_get(the_url) or shield.safe_execute(the_code).

Currently, It focuses on securing the action itself (the URL, the code snippet) rather than wrapping the LLM call that generated it.

The Montessori Method Under Scrutiny: A Meta-Analytic

https://journals.sagepub.com/doi/10.3102/00346543261458396
1•doener•2m ago•0 comments

The AI Disagreement Index: 8 models agreed on the "best tool" 0 of 16 times

https://data.deepsynthesis.org/
1•brainbootdev•3m ago•0 comments

Show HN: Ant – A JavaScript Runtime and Ecosystem

https://antjs.org
2•theMackabu•8m ago•0 comments

Show HN: Use GPT-5.6 and other models in Claude Code

https://github.com/raine/claude-code-proxy
1•rane•8m ago•0 comments

Google Maps features I want in 2026

https://www.adityakarad.com/blog/google-maps-features
1•itskarad•9m ago•1 comments

Wealthy AI workers send San Francisco house prices soaring

https://www.bbc.com/news/articles/c9q29j47v9ro
1•root-parent•9m ago•0 comments

MacSurf 2.0 for OS 9 Released

https://github.com/mplsllc/macsurf/releases
1•mplsllc•11m ago•1 comments

Show HN: Sqlsure – deterministic semantic checks for AI-generated SQL

https://github.com/sqlsure/sqlsure
1•tejusarora•12m ago•0 comments

AI Arcade – which coding model can build the best arcade game

https://ai-arcade.app
1•zapeterson16•13m ago•0 comments

Eva: Manage coding agents inside cloud connected repos

https://github.com/vvedantb/eva
1•handfuloflight•13m ago•0 comments

Nelson language for Engineers and Scientists (Matlab alternative)

https://nelson-lang.github.io/nelson-website/
1•ChaitanyaPatel•14m ago•0 comments

Sperm donors need limits, says a European fertility group

https://www.technologyreview.com/2026/07/10/1140289/sperm-donors-need-limits-says-a-european-fert...
1•randycupertino•15m ago•2 comments

Show HN: Don't let your engineering brain rot in the age of AI

https://www.30secondsofknowledge.com
1•Chipatama90•18m ago•0 comments

Too Many Books?

https://www.nytimes.com/2026/07/09/style/too-many-books-new-york-city-apartment-scholar-landlord....
1•paulpauper•19m ago•0 comments

I built a free tool to evaluate AI agent outputs (human labels and LLM judges)

https://github.com/AntoineF23/verdict
1•antoinefornas•20m ago•0 comments

What's Going on with Mental Health?

https://www.ft.com/content/063b7eed-3f13-43d4-8f12-ff6439b825e8
2•paulpauper•20m ago•0 comments

Meta's Root Cause Analysis Platform at Scale

https://engineering.fb.com/2025/12/19/data-infrastructure/drp-metas-root-cause-analysis-platform-...
1•nikolay_sivko•21m ago•0 comments

Open-Source Alternative to Buffer, Typefully, Hootsuite

https://github.com/coollabsio/shoutrrr
1•michael-sumner•21m ago•0 comments

Sovereign AgentOps – Self-hosted constitutional AI governance for MCP agents

https://github.com/geludobre/sovereign-agentops
1•geludobre•23m ago•0 comments

Show HN: Share and explore custom Claude Code status lines

https://claudelines.com
1•rsproule•24m ago•0 comments

Andon (manufacturing)

https://en.wikipedia.org/wiki/Andon_(manufacturing)
1•tony•26m ago•0 comments

Lora Radio Mesh Builds

https://www.loramesh.org/subpages/builds.html
1•Eridanus2•28m ago•0 comments

Problems with Hourly and Project-Based Pay

https://orchidfiles.com/hourly-pay/
1•theorchid•29m ago•0 comments

The Chinese Voice Actor Forced to Prove He's Human

https://www.sixthtone.com/news/1018753
4•homarp•30m ago•0 comments

Lean Software Production

https://mattwynne.net/lean-software-production
2•mattwynne•30m ago•1 comments

Yi Ma – Pursuing the Nature of Intelligence

https://www.youtube.com/watch?v=Az9sfy3jWNU
1•tims457•30m ago•0 comments

Show HN: Beesign – Simple and Secure e-signature platform

https://beesign.net/
2•beesign•30m ago•1 comments

Show HN: SEO.bike – Free SEO and GEO tools, plus a managed service

https://seo.bike/
1•nadermx•32m ago•0 comments

Pluralistic: Workplace "flexibility" isn't

https://pluralistic.net/2026/07/11/your-risk/
1•Brajeshwar•39m ago•0 comments

Show HN: Wizard – Self-extending Rust terminal AI agent (one-line install)

https://wizard.teddytennant.com
1•Theodoretennant•41m ago•0 comments