frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

SwiftUI Only Makes It Easy to Develop Bad Apps

https://daringfireball.net/2026/06/swiftui_only_makes_it_easy_to_develop_bad_apps
1•frizlab•54s ago•0 comments

An open letter to office suite users, just before the Euro-Office announcement

https://blog.documentfoundation.org/blog/2026/06/08/an-open-letter/
1•linker3000•1m ago•0 comments

The notational conventions I adopted, and why (EWD 1300)

https://www.cs.utexas.edu/~EWD/transcriptions/EWD13xx/EWD1300.html
1•tosh•3m ago•0 comments

Show HN: Online Block Blast Solver – helps you find the best move when stuck

https://onlineblockblastsolver.com/
1•huzaifasinan•9m ago•0 comments

The Magnetic Shadow Effect [video]

https://www.youtube.com/watch?v=MuvuxHXLzls
1•thunderbong•11m ago•0 comments

Box Drawing

https://en.wikipedia.org/wiki/Box_Drawing
1•tosh•12m ago•0 comments

After centuries of trying, we've yet to arrive at a perfect way to map colour [video]

https://aeon.co/videos/after-centuries-of-trying-weve-yet-to-arrive-at-a-perfect-way-to-map-colour
1•the-mitr•15m ago•0 comments

Is This the Dawn of the Tokenpocalypse?

https://techcrunch.com/2026/06/07/is-this-the-dawn-of-the-tokenpocalypse/
8•pseudo-usama•17m ago•2 comments

How to Spot Greenwashing Claims When You Travel

https://www.wired.com/story/how-to-spot-greenwashing-when-you-travel/
2•joozio•17m ago•0 comments

Show HN: Free 26-Source Financial Data API with Free Inference

https://bluedoor.sh/apis/financial-data
2•ahshucks•18m ago•0 comments

Altshiftx_vested_100

https://altshiftx.tech/pricing
2•Magna_Dev•19m ago•1 comments

Training an LLM in Swift, Part 2: macOS built-in frameworks

https://www.cocoawithlove.com/blog/macos-ml-frameworks.html
2•cl3m•24m ago•0 comments

Why the Future Doesn't Need Us (2000)

https://web.archive.org/web/20160210081017/http://www.wired.com/2000/04/joy-2/
2•reasonableklout•26m ago•0 comments

How much of Thermo Fisher's antibody data has been manipulated?

https://reeserichardson.blog/2026/05/28/how-much-of-thermo-fishers-antibody-data-has-been-manipul...
4•mhrmsn•27m ago•0 comments

Condition Number

https://en.wikipedia.org/wiki/Condition_number
3•tosh•29m ago•0 comments

The Small-Business Owners Managing Whole Armies of A.I. Employees

https://www.nytimes.com/2026/06/04/magazine/ai-agents-openclaw-small-business.html
3•littlexsparkee•29m ago•1 comments

Show HN: A hand-wired keyboard for animals with opposable thumbs

https://github.com/Roshanjossey/adipoli
2•sudo_bangbang•30m ago•0 comments

Software buyout deals collapse to lowest level since pandemic after AI rout

https://www.ft.com/content/c7db2d6e-8dec-4de0-9f1c-f73f7e905387
4•thm•32m ago•0 comments

SlimTide Fake vs. Real: Don't Buy Until You Read This Alert

https://act.autismspeaks.org/site/TR/TeamUp/TeamUp-InReview?pg=personal&px=6757942&fr_id=7462
2•watyzaru•33m ago•0 comments

Encyclopedia of 500+ Longevity Evidence Reviews

https://lifespan.io/forever-healthy-foundation-launches-evipedia-ai/
2•negura•36m ago•0 comments

Lev Vygotsky

https://en.wikipedia.org/wiki/Lev_Vygotsky
3•XzetaU8•37m ago•0 comments

They're required to tell you how to beat them

https://julienreszka.com/blog/they-re-required-to-tell-you-how-to-beat-them/
5•julienreszka•40m ago•0 comments

Do not distracted website blocker Chrome extension

https://chromewebstore.google.com/detail/do-not-distracted/gacffmmkpjfmepihjjhhlhleepjlmbaj
2•kd149•42m ago•1 comments

I built Vitra a local‑first desktop app that turns Oura data into daily guidance

https://www.indiehackers.com/post/i-built-vitra-a-local-first-desktop-app-that-turns-oura-data-in...
2•MrPFT•43m ago•0 comments

The Most Surprising Economic Success Story Is North Korea

https://www.wsj.com/world/asia/north-korea-economy-success-e80f7062
3•jmsflknr•45m ago•0 comments

The missing layer in autonomous command systems is decision validity, not speed

https://vulpesetleo.substack.com/p/the-kill-chain-has-a-thinking-problem
5•hnjm•45m ago•1 comments

Ask HN: How do I whitelist commands in Antigravity?

4•madprops•48m ago•0 comments

Anthropic and OpenAI should not be allowed to go public, says Ed Zitron

https://www.youtube.com/watch?v=zbKDmkJPVvI
4•doener•48m ago•0 comments

StepFun IPO

https://www.wsj.com/tech/ai/chinese-ai-startup-stepfun-set-to-file-for-hong-kong-ipo-3e436976
4•bent123•49m ago•0 comments

The Mythmaker at Anthropic

https://om.co/2026/06/07/the-myth-the-mythos-and-the-man/
4•tobolek•52m ago•0 comments