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•11mo 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•11mo 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•11mo 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.

Show HN: BoringBar – a taskbar-style dock replacement for macOS

https://boringbar.app/
1•a-ve•1m ago•0 comments

Coutellerie: Dean Ball's curated reading list

https://projections.hyperdimensional.co/coutellerie
1•jger15•2m ago•0 comments

Humans are losing the fight against flying fish

https://www.wsj.com/lifestyle/flying-asian-carp-attacking-boaters-c7b39e72
1•paulpauper•3m ago•0 comments

SaaS Starter Kit: Node.js and Stripe and Auth and Blog, Deploy in 30 Min

https://template-store-production-fdf1.up.railway.app
1•ashventures•3m ago•0 comments

Show HN: T4 – a versioned datastore with branching and time-travel (S3-backed)

https://github.com/t4db/t4
2•amakhov•4m ago•0 comments

A back end where you never need migrations or auth code

https://www.monsterwriter.com/building-linkedrecords.html
1•WolfOliver•4m ago•0 comments

Styxx – Reads an LLM's cognitive state from token probabilities

https://pypi.org/project/styxx/
1•fathomlab•7m ago•0 comments

Croatian Payment App Landscape

https://croatian-payments.vercel.app/
1•taubek•7m ago•0 comments

The odd disappearance of the business cycle

https://scottsumner.substack.com/p/the-odd-disappearance-of-the-business
1•paulpauper•7m ago•0 comments

Microsoft exec suggests AI agents will need to buy software licenses

https://www.businessinsider.com/microsoft-executive-suggests-ai-agents-buy-software-licenses-seat...
1•pseudolus•9m ago•1 comments

We're Learning Backwards: LLMs build intelligence in reverse

https://pleasedontcite.me/learning-backwards/
1•preyneyv•11m ago•1 comments

The Internet of Poop

https://statmodeling.stat.columbia.edu/2026/04/10/the-internet-of-poop/
1•jruohonen•14m ago•0 comments

Kingman's Formula: Why Variability Kills Performance Before Capacity Does

https://steinacker.name/articles/kingmans-formula/
1•gsteinacker•19m ago•0 comments

Show HN: I Created an LLM Harness for Language Learning

https://language.coursely.ai/welcomee
1•MO-379•20m ago•0 comments

Reading Is Magic

https://samkriss.substack.com/p/reading-is-magic
2•gHeadphone•20m ago•0 comments

The Implementation of Functional Programming Languages (1987)

https://www.microsoft.com/en-us/research/publication/the-implementation-of-functional-programming...
2•downbad_•20m ago•1 comments

WordPress 7.0: The Good, the AI, and the Still Missing

https://adamgreenough.net/blog/wordpress-7-the-good-the-ai-the-missing/
1•taubek•20m ago•0 comments

'The Audacity' Is the Broligarchy Takedown You Were Waiting For

https://www.wired.com/story/the-audacity-is-the-broligarchy-takedown-you-were-waiting-for/
2•joozio•22m ago•0 comments

Kon – A tiny coding harness

https://github.com/0xku/kon
1•krumboy•24m ago•0 comments

Mystery Meat Navigation

https://en.wikipedia.org/wiki/Mystery_meat_navigation
2•microsoftedging•25m ago•0 comments

WordPress AI Theme Builder

https://shuffle.dev/wordpress-ai-theme-builder
1•kemyd•28m ago•0 comments

QBitcoin – Post-Quantum PoS Blockchain with NIST Kyber-768 and Dilithium3

https://github.com/xaviermas1976-ai/qbitcoin
1•xaviermas•28m ago•0 comments

Homelab

https://www.0xn1nja.dev/homelab
2•taubek•31m ago•0 comments

Show HN: Claudraband – Claude Code for the Power User

https://github.com/halfwhey/claudraband
4•halfwhey•31m ago•0 comments

The AI That Cares – Or Excludes?

https://comuniq.xyz/post?t=941
1•01-_-•37m ago•0 comments

Bread Cooperative and the Bloockchain Left

https://platform.coop/blog/what-makes-bread-real/
1•vvpan•40m ago•0 comments

Ask HN: What's your workflow for fixing "port in use" on Windows?

1•gh-automata•40m ago•0 comments

How HN: AndesCode – local AI coding assistant that runs offline

1•angarrido•40m ago•1 comments

What is a coder's worst nightmare? (2014)

https://www.quora.com/What-is-a-coders-worst-nightmare/answer/Mick-Stute?srid=RBKZ&amp;share=1
2•downbad_•42m ago•2 comments

'I hate working 5 days': Zoom CEO traditional work schedules becoming obsolete

https://www.aol.com/finance/zoom-ceo-predicts-3-day-144202969.html
2•bilsbie•43m ago•1 comments