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.

Oracle fires 21,000 employees to fund AI spending

https://www.jpost.com/business-and-innovation/tech-and-start-ups/article-903442
1•DemiGuru•1m ago•0 comments

Microsoft – Open Weights and American AI Leadership

https://www.microsoft.com/en-us/corporate-responsibility/topics/open-weight/
2•louiereederson•2m ago•0 comments

Spending judgement where it matters: how we structure AI-native delivery

https://www.moystard.com/blog/ai-native-delivery/
1•moystard•3m ago•0 comments

Make an Origami Circuit Board

https://spectrum.ieee.org/origami-circuit-boards
1•dpapathanasiou•4m ago•0 comments

Indian court says OpenAI did not violate news agency ANI's copyright

https://www.reuters.com/legal/litigation/indian-court-rules-favor-openai-copyright-lawsuit-brough...
1•SanjayMehta•5m ago•0 comments

Measuring the Performance Cost of High Availability in Postgres

https://clickhouse.com/blog/postgresbench-ha
1•saisrirampur•5m ago•0 comments

Can This New Enzyme Turn Back the Clock in the Human Body?

https://www.nytimes.com/2026/07/24/science/enzymes-aging-cmlase.html
1•jcfrei•7m ago•0 comments

Python package installations as an index of local AI adoption

https://www.unite.ai/python-package-installations-as-an-index-of-local-ai-adoption/
1•50kIters•7m ago•0 comments

LLMs Reward Expertise

https://www.seangoedecke.com/llms-reward-expertise/
1•meetpateltech•8m ago•0 comments

Show HN: Marrow – self-hosted semantic search over your Claude Code sessions

https://github.com/gnosislabstech/marrow
1•gnosislabs•10m ago•0 comments

AGI Singer: Pluto, Recursive Alignment and Hallucination Suppression

https://medium.com/@miho999lv/agi-singer-pluto-recursive-alignment-and-hallucination-suppression-...
1•miho999lv•10m ago•0 comments

Learngraphtheory.org – Free Interactive Platform for Learning Graph Theory

https://learngraphtheory.org/
1•hadjoudj•11m ago•0 comments

Dramas in Backyard

https://www.drmindle.com/dramas-in-my-backyard/
1•drmindle12358•11m ago•0 comments

Show HN: Horch – tracks todos, people, and topics from your meetings, on-device

https://horch.app
1•mm7490•12m ago•0 comments

Pair prompt with Claude/codex AI agents

https://liveshortly.com
1•malviyamukul•12m ago•0 comments

The balance-sheet is out of kilter with its economy

https://economist.com/finance-and-economics/2026/07/23/the-worlds-balance-sheet-is-out-of-kilter-...
1•andsoitis•12m ago•0 comments

Retrotechnology Media

https://typewritten.org/Media/
1•surprisetalk•14m ago•0 comments

SpaceX Delays Major Flight Test Again in Post-IPO Spotlight

https://www.bloomberg.com/news/articles/2026-07-23/spacex-attempts-major-flight-test-again-in-pos...
2•1vuio0pswjnm7•14m ago•0 comments

Alphabet's Future Spending Commitments Soar to $811B

https://www.bloomberg.com/news/articles/2026-07-23/alphabet-s-future-spending-commitments-soar-to...
1•1vuio0pswjnm7•17m ago•0 comments

Ural: Fresh start or final straw? (2025)

https://www.revzilla.com/common-tread/ural-fresh-start-or-beginning-of-the-end
1•YeGoblynQueenne•17m ago•0 comments

Local bookstore battles false Google AI Summary

https://www.news5cleveland.com/news/local-news/were-open-local-bookstore-battles-false-google-ai-...
1•KentGeek•18m ago•0 comments

How the God of Israel Was Born

https://andreafontana.it/en/birth-god-israel-yahweh-el.html
2•trikko•19m ago•0 comments

EU Escalates TikTok Probe over Lack of Privacy Protections

https://www.bloomberg.com/news/articles/2026-07-24/eu-escalates-tiktok-probe-over-lack-of-teen-pr...
2•1vuio0pswjnm7•21m ago•0 comments

How AI is quietly making your team fragile

https://stvn.sh/writing/regression-to-the-mean
1•mooreds•21m ago•0 comments

ICC members set to vote on removing Karim Khan after barring defense team

https://thecradle.co/articles-id/38986
1•NordStreamYacht•22m ago•0 comments

Anyone else like llms.txt for architecture docs?

1•jbdamask•23m ago•0 comments

Show HN: Turn any recipe into 2-player mode

https://nommer.ai/
3•gghootch•24m ago•0 comments

Sidecar Steering Dampers

https://www.sidecars.org.uk/steering-dampers.html
1•YeGoblynQueenne•25m ago•0 comments

The loudest person wins architecture discussions

https://thehardparts.dev/red-flags/the-loudest-person-wins-architecture-discussions
2•ludovicianul•27m ago•0 comments

Show HN: ShiftType – Tap Shift to switch input methods on macOS

https://apps.indiemaze.com/shifttype/
1•sebjones•27m ago•0 comments