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.

Fast-fashion giant Shein aims for $27B valuation in Hong Kong market debut

https://www.theguardian.com/business/2026/aug/24/fashion-giant-shein-27bn-valuation-hong-kong-mar...
1•Markoff•8m ago•0 comments

Attention is all we have: A conjectural theory of cognitive inequality

https://davidbessis.substack.com/p/attention-is-all-we-have
1•rzk•14m ago•0 comments

Compare robot recordings across runs

https://foxglove.dev/blog/compare-robot-recordings-across-runs
1•intrepidsoldier•15m ago•0 comments

Elevated Errors for Multiple Models

https://status.claude.com/incidents/vgz5psbjmt1h
9•rob•15m ago•2 comments

Claude.ai web interface to Claude down, again

6•b112•17m ago•5 comments

Tether: iMessage, SMS, etc. on Linux

https://zackbartel.com/blog/2026/08/tether/
2•zackb•18m ago•0 comments

Show HN: Scalattice Modelmeter. OSS price and latency bench for open models

https://scalattice.com/blog/modelmeter/
1•RomulusHill•18m ago•0 comments

Show HN: Searchable Stripe test cards with one-click copy

https://checkoutpage.com/tools/stripe-test-cards
1•fishsander•22m ago•0 comments

I Rented a 96 GB GPU and Took Uncensored Qwen3.8 From 44 to 125 tok/s

https://aseemshrey.com/blog/running-qwen3-8-27b-uncensored/
3•LuD1161•23m ago•0 comments

Show HN: Open-source calculator for "will my GPU run this LLM?"

https://jaeseok614.github.io/llm-gpu-checker-ko/
2•jaeseok614•23m ago•0 comments

Claude Is Down?

7•tuleiff•27m ago•6 comments

Show HN: Turn everything you read into things you write

https://sidelong.app
2•whatcha•29m ago•1 comments

Texas Gov. says data centers deserve the backlash: 'They dug their own grave'

https://www.businessinsider.com/greg-abbott-texas-data-centers-backlash-2026-8
3•dgellow•32m ago•0 comments

5% of venture capitalists have generated roughly 90% of the industry's profits

https://www.thevccorner.com/p/100-best-performing-vc-firms-ranking-2026
1•koolhead17•37m ago•0 comments

Executable Is a SQLite Database

https://fzakaria.com/2026/08/23/your-executable-is-a-sqlite-database
2•setheron•39m ago•0 comments

The Absolute State of Management

https://infrequently.org/2026/07/state-management/
1•luu•40m ago•0 comments

Mourning Steve French

https://lwn.net/Articles/1090098/
2•mfrw•40m ago•0 comments

The agent that writes the code cannot read the tests that grade it

https://medium.com/@giladha/the-agent-that-writes-the-code-cannot-read-the-tests-that-grade-it-b4...
1•giladha•40m ago•0 comments

AI Is Quietly Draining the Public Internet of Thought

https://twitter.com/BrianRoemmele/status/2091127620431933780
10•nreece•46m ago•4 comments

Observare – one monitoring service instead of five

https://observare.co.uk/
1•5uth3r1ano•50m ago•0 comments

Tesla's Biggest Design Mistake May Be Hiding in Plain Sight

https://www.forbes.com/sites/peterlyon/2026/08/22/teslas-biggest-recall-yet-exposes-a-dangerous-p...
3•FireBeyond•55m ago•1 comments

Moonshine STT adds domain customization

https://moonshine-voice.readthedocs.io/en/latest/models/domain-customization/
1•Curiositry•58m ago•0 comments

Nearly 3M Teslas recalled in China over hidden door handles

https://www.bbc.com/news/articles/c4g6ggdg030o
41•chicken-stew•1h ago•33 comments

Show HN: AltCaption – generate HTML-ready image alt attributes

https://altcaption.com/alt-attribute-generator
1•hboon•1h ago•0 comments

Minimus Is Ending Operations

https://www.minimus.io
4•markiannucci•1h ago•0 comments

Six opportunities for scientists and engineers to learn programming with AI [pdf]

https://pg.ucsd.edu/publications/scientists-engineers-learning-programming-using-ai_CiSE-2023.pdf
3•azhenley•1h ago•0 comments

GitHub tag: "token-optimization" – List of token consumption reduction software

https://github.com/topics/token-optimization
1•peter_d_sherman•1h ago•0 comments

All-in-one tool and config for Claude-things

https://github.com/damusix/atomic-claude
3•daniloa•1h ago•0 comments

Tobi Lutke builds walgit in a weekend

https://twitter.com/tobi/status/2091678506992222258
3•cpstein•1h ago•0 comments

Sabatier Principle

https://en.wikipedia.org/wiki/Sabatier_principle
2•peter_d_sherman•1h ago•0 comments