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.

Elsag SignalTrace maps cars using phone, car radio, headphone, watch, key finder

https://www.leonardocompany-us.com/lpr/elsag-signaltrace
1•rexbee•31s ago•0 comments

The Soft Machine (1961)

https://www.semiovox.com/articles/2026/03/05/the-soft-machine/
1•windows1000•1m ago•0 comments

Is OpenCode Go a Scam?

https://www.youtube.com/watch?v=S0m_rEukNKM
1•alvivar•6m ago•0 comments

WiCi: Connecting GPUs over WiFi

https://wici.ai
1•shubham0204•7m ago•1 comments

Design systems for agents

https://design.how
1•handfuloflight•9m ago•0 comments

Show HN: Analog Video Feedback Fractals

https://www.youtube.com/watch?v=znkzM9-FVzw
1•i2pi•11m ago•0 comments

Formalities

https://pluralistic.net/2026/10/31/burn-berne/
2•dgudkov•13m ago•1 comments

Eulogy for the Software Engineer [video]

https://www.youtube.com/watch?v=uuKOXGVIP8I
2•mhsdef•15m ago•0 comments

Ask HN: Old experimental website that made photos sing?

1•jesuisdieu•19m ago•0 comments

RequestRocket Promo Key

https://requestrocket.com
1•geoicons•38m ago•1 comments

Doop

https://doop.design/
1•handfuloflight•41m ago•0 comments

What Happened to the TI-83? Sold to Every Student in 1996 Then Destroyed Itself

https://www.youtube.com/watch?v=X9YqHX0Twg4
1•cable2600•46m ago•0 comments

RustDrop – privacy-first P2P file transfer for your LAN (Rust)

https://github.com/hakuxyz/rustdrop
1•xyzhaku•47m ago•0 comments

How AI may drive union-resistant tech workers to the bargaining table

https://www.theguardian.com/technology/2026/jul/21/ai-tech-workers-unionize
1•civilchaos•47m ago•0 comments

Avoid Public Functions Calling Other Public Functions

https://matklad.github.io/2026/10/29/pub-calls-pub.html
3•birdculture•52m ago•0 comments

Wikimedia Foundation amicus brief regarding OpenAI [pdf]

https://commons.wikimedia.org/w/index.php?title=File%3A26.10.29_WMF_motion_and_amicus_In_re_OAI.p...
1•gnabgib•55m ago•0 comments

Amazon made the AUX input on older Alexa devices less useful

https://www.engadget.com/2300219/amazon-made-alexa-devices-aux-port-less-useful/
3•NordStreamYacht•56m ago•0 comments

The Elephant-Goldfish Model plugin for spec-driven AI development

https://opensource.googleblog.com/2026/10/introducing-elephant-goldfish-model-plugin.html
1•derekleeth•56m ago•0 comments

Show HN: Vela, a New Linux Desktop Environment

https://velade.org/blog/vela-0-1/
3•BrandoDev_it•1h ago•0 comments

Bashttpd: A web server written in bash

https://github.com/avleen/bashttpd
1•denysonique•1h ago•0 comments

Wikimedia Foundation Tries to Save Itself by Brokering AI Copyright Deal

https://gizmodo.com/wikimedia-foundation-tries-to-save-itself-from-oblivion-by-brokering-ai-copyr...
5•CharlesW•1h ago•0 comments

Tell HN: ChatGPT and Codex usage will be combined

4•FergusArgyll•1h ago•3 comments

Analysts find looming launch crisis is "more severe" than anticipated

https://arstechnica.com/space/2026/10/analysts-find-looming-launch-crisis-is-more-severe-than-ant...
1•rbanffy•1h ago•0 comments

Toit v2.0.0

https://toit.io/blog/toit-v2-0-0/
2•floitsch•1h ago•0 comments

Docsferatu: An agent that drafts docs PRs while you sleep

https://www.inngest.com/blog/docsferatu-an-agent-that-drafts-docs-prs-while-you-sleep
1•Linell•1h ago•0 comments

Treatments for age-related infertility are being developed at last

https://www.economist.com/science-and-technology/2026/10/26/treatments-for-age-related-infertilit...
2•Anon84•1h ago•0 comments

Supersonic airliner in doubt as company shifts to powering AI data centers

https://arstechnica.com/gadgets/2026/10/united-airlines-ceo-doubts-supersonic-airliner-from-boom-...
2•rbanffy•1h ago•0 comments

Show HN: Bobby – Over Engineering PR Reviews

https://bobby.viraj.computer/
1•angrybayblade•1h ago•0 comments

Show HN: BBRouter – Ben Eater's 8-bit computer, simulated on 3D breadboards

https://bbrouter.com/bbrouter/ben-eater-sap-1
3•creack•1h ago•0 comments

Donnie Darko: A Mind-Twisting Cult Classic Turns 25

https://www.nytimes.com/2026/10/26/movies/donnie-darko-oral-history-25-year-anniversary.html
5•gnabgib•1h ago•1 comments